From fc6e3df43817dce8c5d403f9b759c2f597ca4a6f Mon Sep 17 00:00:00 2001 From: Guy McSwain Date: Sat, 18 Jan 2020 14:41:09 -0600 Subject: [PATCH] v7302: Fix range of 'old' rev codes --- pigpio.c | 2 +- pigpio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pigpio.c b/pigpio.c index 15dab59..261e540 100644 --- 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; diff --git a/pigpio.h b/pigpio.h index 039a79f..5817460 100644 --- a/pigpio.h +++ b/pigpio.h @@ -30,7 +30,7 @@ For more information, please refer to #include #include -#define PIGPIO_VERSION 7301 +#define PIGPIO_VERSION 7302 /*TEXT