Skip to content

Commit

Permalink
fix: wiringPiISR pin error
Browse files Browse the repository at this point in the history
Now the wiringPiISR can work
  • Loading branch information
czf0613 committed Aug 25, 2024
1 parent 7ce7a4c commit 4fb8cdc
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 @@ -4532,7 +4532,7 @@ int wiringPiISR (int pin, int mode, void (*function)(void))
else
modeS = "both" ;

sprintf (pinS, "%d", pin) ;
sprintf (pinS, "%d", bcmGpioPin);

if ((pid = fork ()) < 0) // Fail
return wiringPiFailure (WPI_FATAL, "wiringPiISR: fork failed: %s\n", strerror (errno)) ;
Expand Down

0 comments on commit 4fb8cdc

Please sign in to comment.