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