mirror of https://github.com/joan2937/pigpio
v7302: Fix range of 'old' rev codes
This commit is contained in:
parent
714136afe4
commit
fc6e3df438
2
pigpio.c
2
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;
|
||||
|
|
Loading…
Reference in New Issue