Skip to content

Commit

Permalink
Merge pull request orangepi-xunlong#20 from mityarzn/master
Browse files Browse the repository at this point in the history
Fix gpio ISR
  • Loading branch information
orangepi-xunlong authored Nov 10, 2020
2 parents 51b2359 + b584dd1 commit f8e0815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wiringPi/wiringPi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ;
Expand Down

0 comments on commit f8e0815

Please sign in to comment.