diff --git a/wiringPi/wiringPi.c b/wiringPi/wiringPi.c index 15b8e82..65a8821 100755 --- a/wiringPi/wiringPi.c +++ b/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)) ;