mirror of
https://github.com/armel/uv-k1-k5v3-firmware-custom.git
synced 2026-10-04 20:17:28 +00:00
Save 8 bytes
This commit is contained in:
1 parent
b54e17c418
commit
94bf455a57
1 file changed
+18
+18
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user