mirror of https://github.com/joan2937/pigpio
Fix detection of whether or not the system is a raspberry pi.
This commit is contained in:
parent
3c972b8cdb
commit
d1afccf04f
2
pigpio.c
2
pigpio.c
|
@ -13772,7 +13772,7 @@ unsigned gpioHardwareRevision(void)
|
||||||
|
|
||||||
if ((rev & 0x800000) == 0) /* old rev code */
|
if ((rev & 0x800000) == 0) /* old rev code */
|
||||||
{
|
{
|
||||||
if (rev < 0x0016) /* all BCM2835 */
|
if ((rev > 0) && (rev < 0x0016)) /* all BCM2835 */
|
||||||
{
|
{
|
||||||
pi_ispi = 1;
|
pi_ispi = 1;
|
||||||
piCores = 1;
|
piCores = 1;
|
||||||
|
|
Loading…
Reference in New Issue