From 3892e752c583f871e8dc1ca66e21dbaff5390760 Mon Sep 17 00:00:00 2001 From: folkert van heusden Date: Sun, 21 Apr 2024 23:02:46 +0200 Subject: [PATCH] if there are more interrupts waiting, set the trap delay to something sane --- cpu.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cpu.cpp b/cpu.cpp index 4d7f603..e7800f3 100644 --- a/cpu.cpp +++ b/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) xSemaphoreGive(qi_lock); #endif