From 363b27efe8276df5049f9b8d993c3211657b7821 Mon Sep 17 00:00:00 2001 From: qwer123 <56971466+bumblebee-2025@users.noreply.github.com> Date: Fri, 20 Feb 2026 17:35:19 +0800 Subject: [PATCH] fix RX AUDIO baseband async error for PRALINE (#3010) --- firmware/application/baseband_api.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/firmware/application/baseband_api.cpp b/firmware/application/baseband_api.cpp index 2d9335715..ee6c7e9a6 100644 --- a/firmware/application/baseband_api.cpp +++ b/firmware/application/baseband_api.cpp @@ -473,7 +473,12 @@ void shutdown() { send_message(&message); shared_memory.application_queue.reset(); - + // Allow time for the shutdown message to be processed and for the baseband + // core to stop before starting another image. Otherwise, the M4 may still be + // running and cause a crash when the next image is started. +#ifdef PRALINE + chThdSleepMilliseconds(20); +#endif baseband_image_running = false; }