We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f6c902 commit 4af8b7fCopy full SHA for 4af8b7f
cores/arduino/IRQManager.cpp
@@ -45,7 +45,7 @@ bool IRQManager::addGenericInterrupt(GenericIrqCfg_t &cfg, Irq_f fnc /*= nullptr
45
irq_ptr += FIXED_IRQ_NUM;
46
bool rv = false;
47
48
- if(cfg.irq == FSP_INVALID_VECTOR) {
+ if((cfg.irq == FSP_INVALID_VECTOR) && (last_interrupt_index < PROG_IRQ_NUM)) {
49
if(fnc != nullptr){
50
R_ICU->IELSR[last_interrupt_index] = cfg.event;
51
*(irq_ptr + last_interrupt_index) = (uint32_t)fnc;
0 commit comments