if there are more interrupts waiting, set the trap delay to something sane

This commit is contained in:
folkert van heusden 2024-04-21 23:02:46 +02:00
parent cb4017f22b
commit 3892e752c5
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1

View file

@ -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)
xSemaphoreGive(qi_lock);
#endif