From 3f3708f0f13c5a504f8657b7f976747374522ec8 Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 8 Aug 2014 11:18:28 +0200 Subject: [PATCH] Fixes #1546 // TODO check if the vario / background music are stopped correctly if switching to a model which doesn't have these functions enabled --- radio/src/opentx.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/radio/src/opentx.cpp b/radio/src/opentx.cpp index 5b981f802..7e8c940e5 100644 --- a/radio/src/opentx.cpp +++ b/radio/src/opentx.cpp @@ -1625,11 +1625,8 @@ void timerReset(uint8_t idx) void flightReset() { - static bool firstReset = true; - if (firstReset) - firstReset = false; - else - AUDIO_RESET(); + // we don't reset the whole audio here (the tada.wav would be cut, if a prompt is queued before FlightReset, it should be played) + // TODO check if the vario / background music are stopped correctly if switching to a model which doesn't have these functions enabled if (!IS_MANUAL_RESET_TIMER(0)) { timerReset(0);