v7302: Fix range of 'old' rev codes
authorGuy McSwain <guy.mcswain@gmail.com>
Sat, 18 Jan 2020 20:41:09 +0000 (14:41 -0600)
committerGuy McSwain <guy.mcswain@gmail.com>
Sat, 18 Jan 2020 20:41:09 +0000 (14:41 -0600)
pigpio.c
pigpio.h

index 15dab59534d1bfb7ee6966f02e10c0df85c3c552..261e540a7506971d967adc678903be36864f6dda 100644 (file)
--- a/pigpio.c
+++ b/pigpio.c
@@ -13521,7 +13521,7 @@ unsigned gpioHardwareRevision(void)
 
    if ((rev & 0x800000) == 0) /* old rev code */
    {
-      if (rev < 16) /* all BCM2835 */
+      if (rev < 0x0016) /* all BCM2835 */
       {
          pi_ispi = 1;
          piCores = 1;
index 039a79fd2d67905ebd962fc3b00612004933ea1d..5817460f3e6bd4f9a204ca02ea45050e7aeae924 100644 (file)
--- a/pigpio.h
+++ b/pigpio.h
@@ -30,7 +30,7 @@ For more information, please refer to <http://unlicense.org/>
 #include <stdint.h>
 #include <pthread.h>
 
-#define PIGPIO_VERSION 7301
+#define PIGPIO_VERSION 7302
 
 /*TEXT