Browse Source

Merge pull request #20 from mityarzn/master

Fix gpio ISR
pull/39/head
Orange Pi 4 years ago committed by GitHub
parent
commit
f8e0815a9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      wiringPi/wiringPi.c

2
wiringPi/wiringPi.c

@ -2030,7 +2030,7 @@ int wiringPiISR (int pin, int mode, void (*function)(void))
else
modeS = "both" ;
sprintf (pinS, "%d", bcmGpioPin) ;
sprintf (pinS, "%d", pin) ;
if ((pid = fork ()) < 0) // Fail
return wiringPiFailure (WPI_FATAL, "wiringPiISR: fork failed: %s\n", strerror (errno)) ;

Loading…
Cancel
Save