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

Bug fixes if FM radio enabled

This commit is contained in:
OneOfEleven
2023-09-25 13:27:52 +01:00
parent ed321778c0
commit bcfe977b36
16 changed files with 96 additions and 54 deletions

View File

@ -116,7 +116,7 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
#if defined(ENABLE_FMRADIO)
if (gFmRadioMode)
gFM_RestoreCountdown = 500;
gFM_RestoreCountdown_10ms = fm_restore_countdown_10ms;
#endif
if (gDTMF_CallState == DTMF_CALL_STATE_CALL_OUT || gDTMF_CallState == DTMF_CALL_STATE_RECEIVED)
@ -201,6 +201,6 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
gSchedulePowerSave = false;
#if defined(ENABLE_FMRADIO)
gFM_RestoreCountdown = 0;
gFM_RestoreCountdown_10ms = 0;
#endif
}