From 2da6a5a331e2ef82fde2c4a27cf98433568c7b10 Mon Sep 17 00:00:00 2001 From: philmoz Date: Mon, 9 Feb 2026 10:50:48 +1100 Subject: [PATCH] fix(cpn): simulator crash if attempts to play bye.wav on exit (#7085) --- radio/src/edgetx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radio/src/edgetx.cpp b/radio/src/edgetx.cpp index 2e40816c8..cbdf2aaa4 100644 --- a/radio/src/edgetx.cpp +++ b/radio/src/edgetx.cpp @@ -1130,7 +1130,11 @@ void edgeTxClose(uint8_t shutdown) if (shutdown) { pulsesStop(); +#if !defined(SIMU) + // Audio task has been stopped so this will not play + // when closing the simulator AUDIO_BYE(); +#endif // TODO needed? telemetryEnd(); #if defined(HAPTIC) hapticOff();