Skip to content

Commit 1f3527a

Browse files
committed
fixed macro IS_PIN_INTERRUPT
1 parent 71af575 commit 1f3527a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Boards.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ writePort(port, value, bitmask): Write an 8 bit port.
678678
#define IS_PIN_SERVO(p) (IS_PIN_DIGITAL(p) && (p) < MAX_SERVOS)
679679
#define IS_PIN_I2C(p) ((p) == SDA || (p) == SCL)
680680
#define IS_PIN_SPI(p) ((p) == SS || (p) == MOSI || (p) == MISO || (p) == SCK)
681-
#define IS_PIN_INTERRUPT(p) digitalPinToInterrupt(p)
681+
#define IS_PIN_INTERRUPT(p) (digitalPinToInterrupt(p) > NOT_AN_INTERRUPT)
682682
#define IS_PIN_SERIAL(p) ((p) == PIN_SERIAL_RX || (p) == PIN_SERIAL_TX)
683683
#define PIN_TO_DIGITAL(p) (p)
684684
#define PIN_TO_ANALOG(p) ((p) - A0)

0 commit comments

Comments
 (0)