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

FM radio updates

This commit is contained in:
OneOfEleven
2023-10-31 06:56:21 +00:00
parent b85ea562c7
commit 0a9765b2bd
36 changed files with 152 additions and 167 deletions

View File

@ -14,8 +14,6 @@
* limitations under the License.
*/
#include <string.h>
#include "app/app.h"
#include "app/dtmf.h"
#ifdef ENABLE_FMRADIO
@ -965,10 +963,6 @@ void RADIO_set_vfo_state(vfo_state_t State)
{
g_vfo_state[0] = VFO_STATE_NORMAL;
g_vfo_state[1] = VFO_STATE_NORMAL;
#ifdef ENABLE_FMRADIO
g_fm_resume_tick_500ms = 0;
#endif
}
else
{
@ -984,7 +978,8 @@ void RADIO_set_vfo_state(vfo_state_t State)
}
#ifdef ENABLE_FMRADIO
g_fm_resume_tick_500ms = fm_resume_500ms;
if (g_fm_radio_mode && g_fm_resume_tick_500ms < fm_resume_500ms)
g_fm_resume_tick_500ms = fm_resume_500ms;
#endif
}