Bsongis/issue 7156 (#7160)

Fixes #7156
This commit is contained in:
Bertrand Songis
2019-12-06 16:27:07 +01:00
committed by GitHub
parent b334e1845d
commit 98c123ef8b
6 changed files with 45 additions and 40 deletions
+5 -9
View File
@@ -712,11 +712,6 @@ void checkBacklight()
}
}
void doLoopCommonActions()
{
checkBacklight();
}
void backlightOn()
{
lightOffCounter = ((uint16_t)g_eeGeneral.lightAutoOff*250) << 1;
@@ -802,7 +797,7 @@ void doSplash()
}
#endif
doLoopCommonActions();
checkBacklight();
}
}
}
@@ -1021,7 +1016,7 @@ void checkThrottleStick()
}
#endif
doLoopCommonActions();
checkBacklight();
WDG_RESET();
@@ -1060,7 +1055,7 @@ void alert(const char * title, const char * msg , uint8_t sound)
if (keyDown()) // wait for key release
break;
doLoopCommonActions();
checkBacklight();
WDG_RESET();
@@ -1591,8 +1586,9 @@ void opentxClose(uint8_t shutdown)
{
TRACE("opentxClose");
watchdogSuspend(2000/*20s*/);
if (shutdown) {
watchdogSuspend(2000/*20s*/);
pausePulses(); // stop mixer task to disable trims processing while in shutdown
AUDIO_BYE();
// TODO needed? telemetryEnd();