Improve SetOff
This commit is contained in:
@@ -1586,6 +1586,8 @@ void APP_TimeSlice500ms(void)
|
||||
gWakeUp = false;
|
||||
}
|
||||
|
||||
if(gCurrentFunction != FUNCTION_TRANSMIT && !FUNCTION_IsRx())
|
||||
{
|
||||
if (gSleepModeCountdown_500ms > 0 && --gSleepModeCountdown_500ms == 0) {
|
||||
gBacklightCountdown_500ms = 0;
|
||||
BACKLIGHT_TurnOff();
|
||||
@@ -1593,6 +1595,11 @@ void APP_TimeSlice500ms(void)
|
||||
gPowerSave_10ms = 1;
|
||||
gWakeUp = true;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gSleepModeCountdown_500ms = gSetting_set_off * 120;
|
||||
}
|
||||
|
||||
if (gWakeUp) {
|
||||
static bool swap = true;
|
||||
|
Reference in New Issue
Block a user