Skip to content

Commit fea2125

Browse files
committed
uses NOT_AN_INTERRUPT within C3
1 parent c47a8dc commit fea2125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

variants/esp32c3/pins_arduino.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ static const uint8_t LED_BUILTIN = SOC_GPIO_PIN_COUNT+8;
1515
#define RGB_BRIGHTNESS 64
1616

1717
#define analogInputToDigitalPin(p) (((p)<NUM_ANALOG_INPUTS)?(analogChannelToDigitalPin(p)):-1)
18-
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):-1)
18+
#define digitalPinToInterrupt(p) (((p)<NUM_DIGITAL_PINS)?(p):NOT_AN_INTERRUP)
1919
#define digitalPinHasPWM(p) (p < EXTERNAL_NUM_INTERRUPTS)
2020

2121
static const uint8_t TX = 21;

0 commit comments

Comments
 (0)