Fix detection of whether or not the system is a raspberry pi.

This commit is contained in:
Peter Michael Green 2021-01-28 20:18:56 +00:00 committed by Guy McSwain
parent 3c972b8cdb
commit d1afccf04f
1 changed files with 1 additions and 1 deletions

View File

@ -13772,7 +13772,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;