From: Peter Michael Green Date: Thu, 28 Jan 2021 20:18:56 +0000 (+0000) Subject: Fix detection of whether or not the system is a raspberry pi. X-Git-Tag: archive/raspbian/1.78-1.1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a0824c345c156241d40655b525a994a746c9d699;p=pigpio.git Fix detection of whether or not the system is a raspberry pi. Gbp-Pq: Name fix-detection-of-whether-or-not-the-syst.patch --- diff --git a/pigpio.c b/pigpio.c index 92b9bf7..7713759 100644 --- a/pigpio.c +++ b/pigpio.c @@ -13754,7 +13754,7 @@ unsigned gpioHardwareRevision(void) if ((rev & 0x800000) == 0) /* old rev code */ { - if (rev < 0x0016) /* all BCM2835 */ + if ((rev > 0) && (rev < 0x0016)) /* all BCM2835 */ { pi_ispi = 1; piCores = 1;