From 58b6fd4789777660b202a0f9d531b30075c56355 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Tue, 21 Oct 2014 16:55:37 +0200 Subject: [PATCH] Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt() Fixes #2379 --- build/shared/revisions.txt | 3 +++ hardware/arduino/cores/arduino/Arduino.h | 2 ++ hardware/arduino/cores/robot/Arduino.h | 2 ++ 3 files changed, 7 insertions(+) diff --git a/build/shared/revisions.txt b/build/shared/revisions.txt index 664f14ef1..beac39f85 100644 --- a/build/shared/revisions.txt +++ b/build/shared/revisions.txt @@ -5,6 +5,9 @@ ARDUINO 1.0.7 * Backported GSM from IDE 1.5.x * EthernetClien: use IANA recommended ephemeral port range, 49152-65535 (Jack Christensen, cifer-lee) +[core] +* Fixed missing NOT_AN_INTERRUPT constant in digitalPinToInterrupt() macro + ARDUINO 1.0.6 - 2014.09.16 [core] diff --git a/hardware/arduino/cores/arduino/Arduino.h b/hardware/arduino/cores/arduino/Arduino.h index 8673ab8ab..d4a22a69c 100755 --- a/hardware/arduino/cores/arduino/Arduino.h +++ b/hardware/arduino/cores/arduino/Arduino.h @@ -171,6 +171,8 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[]; #define NOT_A_PIN 0 #define NOT_A_PORT 0 +#define NOT_AN_INTERRUPT -1 + #ifdef ARDUINO_MAIN #define PA 1 #define PB 2 diff --git a/hardware/arduino/cores/robot/Arduino.h b/hardware/arduino/cores/robot/Arduino.h index 93a3525d6..5da518f5c 100755 --- a/hardware/arduino/cores/robot/Arduino.h +++ b/hardware/arduino/cores/robot/Arduino.h @@ -168,6 +168,8 @@ extern const uint8_t PROGMEM digital_pin_to_timer_PGM[]; #define NOT_A_PIN 0 #define NOT_A_PORT 0 +#define NOT_AN_INTERRUPT -1 + #ifdef ARDUINO_MAIN #define PA 1 #define PB 2