Browse Source

Update gpio.c

Fix You have not called one of the wiringPiSetup when using gpio -p option (in node-red-node-piface 0.0.8)
pull/77/head
Bennert 4 years ago
parent
commit
4492ce953c
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      gpio/gpio.c

+ 1
- 0
gpio/gpio.c View File

@@ -1436,6 +1436,7 @@ int main (int argc, char *argv [])

else if (strcasecmp (argv [1], "-p") == 0)
{
wiringPiSetupSys () ;
piFaceSetup (200) ;

for (i = 2 ; i < argc ; ++i)


Loading…
Cancel
Save