0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +03:00

Maintain monitor state when up/down freq/chan

This commit is contained in:
OneOfEleven
2023-09-26 13:59:01 +01:00
parent 9d178c549a
commit 14f154b927
11 changed files with 103 additions and 48 deletions

View File

@ -125,8 +125,12 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
return;
case FUNCTION_MONITOR:
gMonitor = true;
break;
case FUNCTION_INCOMING:
case FUNCTION_RECEIVE:
gMonitor = false;
break;
case FUNCTION_POWER_SAVE:
@ -134,6 +138,8 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
gPowerSaveCountdownExpired = false;
gRxIdleMode = true;
gMonitor = false;
BK4819_DisableVox();
BK4819_Sleep();