From 688fe79471625762bd6f3816dec9cef7f7cfb2e1 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Thu, 27 Jun 2024 16:12:43 +1000 Subject: require a key press before entering the dev console this improves our ability to detect terminals that support line editing --- src/tangara/system_fsm/booting.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/tangara/system_fsm') diff --git a/src/tangara/system_fsm/booting.cpp b/src/tangara/system_fsm/booting.cpp index feba0dc0..9d505f81 100644 --- a/src/tangara/system_fsm/booting.cpp +++ b/src/tangara/system_fsm/booting.cpp @@ -115,9 +115,11 @@ auto Booting::entry() -> void { auto Booting::exit() -> void { // TODO(jacqueline): Gate this on something. Debug flag? Flashing mode? - sAppConsole = new console::AppConsole(); - sAppConsole->sServices = sServices; - sAppConsole->Launch(); + sServices->bg_worker().Dispatch([&] { + sAppConsole = new console::AppConsole(); + sAppConsole->sServices = sServices; + sAppConsole->Launch(); + }); TimerHandle_t timer = xTimerCreate("INTERRUPTS", kInterruptCheckPeriod, true, NULL, check_interrupts_cb); -- cgit v1.2.3