Skip to content

Commit 58b6fd4

Browse files
committed
Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt()
Fixes #2379
1 parent ed5ad42 commit 58b6fd4

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

build/shared/revisions.txt

+3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ ARDUINO 1.0.7
55
* Backported GSM from IDE 1.5.x
66
* EthernetClien: use IANA recommended ephemeral port range, 49152-65535 (Jack Christensen, cifer-lee)
77

8+
[core]
9+
* Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt() macro
10+
811
ARDUINO 1.0.6 - 2014.09.16
912

1013
[core]

hardware/arduino/cores/arduino/Arduino.h

+2
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

hardware/arduino/cores/robot/Arduino.h

+2
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)