if there are more interrupts waiting, set the trap delay to something sane
This commit is contained in:
parent
cb4017f22b
commit
3892e752c5
1 changed files with 3 additions and 0 deletions
3
cpu.cpp
3
cpu.cpp
|
@ -421,6 +421,9 @@ bool cpu::execute_any_pending_interrupt()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (any_queued_interrupts && trap_delay.has_value() == false)
|
||||||
|
trap_delay = initial_trap_delay;
|
||||||
|
|
||||||
#if defined(BUILD_FOR_RP2040)
|
#if defined(BUILD_FOR_RP2040)
|
||||||
xSemaphoreGive(qi_lock);
|
xSemaphoreGive(qi_lock);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue