Fixes #1546
// TODO check if the vario / background music are stopped correctly if switching to a model which doesn't have these functions enabled
This commit is contained in:
@@ -1625,11 +1625,8 @@ void timerReset(uint8_t idx)
|
|||||||
|
|
||||||
void flightReset()
|
void flightReset()
|
||||||
{
|
{
|
||||||
static bool firstReset = true;
|
// 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)
|
||||||
if (firstReset)
|
// TODO check if the vario / background music are stopped correctly if switching to a model which doesn't have these functions enabled
|
||||||
firstReset = false;
|
|
||||||
else
|
|
||||||
AUDIO_RESET();
|
|
||||||
|
|
||||||
if (!IS_MANUAL_RESET_TIMER(0)) {
|
if (!IS_MANUAL_RESET_TIMER(0)) {
|
||||||
timerReset(0);
|
timerReset(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user