Skip to content

Commit b2e8e7e

Browse files
authored
Update MAX_IRQ_CHANNEL to a constexpr
1 parent 1db420d commit b2e8e7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cores/arduino/Interrupts.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
#if EXT_INTERRUPTS_HOWMANY > 0
2525

2626
extern const PinMuxCfg_t g_pin_cfg[];
27-
28-
#define MAX_IRQ_CHANNEL (15)
27+
constexpr int MAX_IRQ_CHANNEL = 15;
2928

3029
using IrqFuncVoid_f = void (*)();
3130
using IrqFuncParam_f = void (*)(void *);

0 commit comments

Comments
 (0)