Browse Source

#16

pull/188/head
mstroh76 9 months ago
parent
commit
888d88ef6e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      wiringPi/wiringPi.c

+ 1
- 1
wiringPi/wiringPi.c View File

@@ -502,7 +502,7 @@ int GPIOToSysFS(const int pin) {
} }
if (PI_MODEL_5 == RaspberryPiModel) { if (PI_MODEL_5 == RaspberryPiModel) {
sysfspin = pin + 399; sysfspin = pin + 399;
if (pin>426) { // only 399-426 supported
if (sysfspin<399 || sysfspin>426) { // only 399-426 supported, 40-pin GPIO header
sysfspin = -1; sysfspin = -1;
} }
} }


Loading…
Cancel
Save