diff options
author | Peter Michael Green <plugwash@debian.org> | 2021-01-28 20:18:56 +0000 |
---|---|---|
committer | Peter Michael Green <plugwash@debian.org> | 2021-01-28 20:18:56 +0000 |
commit | f44ff825f6955d6531b13ed21ac44a3e17aeb192 (patch) | |
tree | a03d6daa176090106c3050253a754fb71647e6c2 | |
parent | 07948354931d7485dc8b91476fa328a2bd3448b7 (diff) |
Fix detection of whether or not the system is a raspberry pi.
-rw-r--r-- | pigpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |