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
db1fd9cf6c
commit
6758f3d23d
2
pigpio.c
2
pigpio.c
|
@ -13754,7 +13754,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