Save 8 bytes

This commit is contained in:
Armel FAUVEAU
2025-02-06 03:26:09 +01:00
parent b54e17c418
commit 94bf455a57

View File

@@ -255,6 +255,7 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
UI_DisplayStatus();
}
/*
switch (Function) {
case FUNCTION_FOREGROUND:
FUNCTION_Foreground(PreviousFunction);
@@ -278,6 +279,23 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
default:
break;
}
*/
if (Function == FUNCTION_FOREGROUND) {
FUNCTION_Foreground(PreviousFunction);
return;
}
if (Function == FUNCTION_POWER_SAVE) {
FUNCTION_PowerSave();
return;
}
if (Function == FUNCTION_TRANSMIT) {
FUNCTION_Transmit();
} else if (Function == FUNCTION_MONITOR) {
gMonitor = true;
}
gBatterySaveCountdown_10ms = battery_save_count_10ms;
gSchedulePowerSave = false;