Skip to content

Commit a66946e

Browse files
committed
Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt()
Fixes #2379
1 parent ac52377 commit a66946e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

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

cores/robot/Arduino.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,8 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[];
168168
#define NOT_A_PIN 0
169169
#define NOT_A_PORT 0
170170

171+
#define NOT_AN_INTERRUPT -1
172+
171173
#ifdef ARDUINO_MAIN
172174
#define PA 1
173175
#define PB 2

0 commit comments

Comments
 (0)