Skip to content

Commit 74664e5

Browse files
committed
Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt()
Fixes #2379
1 parent 54ccc7a commit 74664e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hardware/arduino/cores/arduino/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
171171
#define NOT_A_PIN 0
172172
#define NOT_A_PORT 0
173173

174+
#define NOT_AN_INTERRUPT -1
175+
174176
#ifdef ARDUINO_MAIN
175177
#define PA 1
176178
#define PB 2

0 commit comments

Comments
 (0)