v7302: Fix range of 'old' rev codes

This commit is contained in:
Guy McSwain 2020-01-18 14:41:09 -06:00
parent 714136afe4
commit fc6e3df438
2 changed files with 2 additions and 2 deletions

View File

@ -13521,7 +13521,7 @@ unsigned gpioHardwareRevision(void)
if ((rev & 0x800000) == 0) /* old rev code */ if ((rev & 0x800000) == 0) /* old rev code */
{ {
if (rev < 16) /* all BCM2835 */ if (rev < 0x0016) /* all BCM2835 */
{ {
pi_ispi = 1; pi_ispi = 1;
piCores = 1; piCores = 1;

View File

@ -30,7 +30,7 @@ For more information, please refer to <http://unlicense.org/>
#include <stdint.h> #include <stdint.h>
#include <pthread.h> #include <pthread.h>
#define PIGPIO_VERSION 7301 #define PIGPIO_VERSION 7302
/*TEXT /*TEXT