Skip to content

Commit 4f2b58f

Browse files
committed
Fixed compilation error
1 parent 75e4d81 commit 4f2b58f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/ESP32/examples/GPIO/FunctionalInterrupt/FunctionalInterrupt.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ void setup() {
2929
Serial.begin(115200);
3030
pinMode(button1.PIN, INPUT_PULLUP);
3131
pinMode(button2.PIN, INPUT_PULLUP);
32-
attachInterrupt(button1.PIN, &isr, FALLING);
33-
attachInterrupt(button2.PIN, &isr, FALLING);
32+
attachInterrupt(button1.PIN, (void ()())isr, FALLING);
33+
attachInterrupt(button2.PIN, (void ()())isr, FALLING);
3434
}
3535

3636
void loop() {

0 commit comments

Comments
 (0)