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

Added FM radio lower frequency options

This commit is contained in:
OneOfEleven
2023-10-22 23:59:47 +01:00
parent 7aff322458
commit df3d298487
26 changed files with 127 additions and 119 deletions

View File

@ -18,7 +18,7 @@
#include "app/app.h"
#include "app/dtmf.h"
#ifdef ENABLE_FMRADIO
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
#include "app/fm.h"
#endif
#include "audio.h"
@ -737,7 +737,7 @@ void RADIO_setup_registers(bool switch_to_function_foreground)
#ifdef ENABLE_VOX
if (
#ifdef ENABLE_FMRADIO
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
!g_fm_radio_mode &&
#endif
g_eeprom.vox_switch &&
@ -920,7 +920,7 @@ void RADIO_Setg_vfo_state(vfo_state_t State)
g_vfo_state[0] = VFO_STATE_NORMAL;
g_vfo_state[1] = VFO_STATE_NORMAL;
#ifdef ENABLE_FMRADIO
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
g_fm_resume_count_down_500ms = 0;
#endif
}
@ -937,7 +937,7 @@ void RADIO_Setg_vfo_state(vfo_state_t State)
g_vfo_state[vfo] = State;
}
#ifdef ENABLE_FMRADIO
#if defined(ENABLE_FMRADIO_68_108) || defined(ENABLE_FMRADIO_76_108) || defined(ENABLE_FMRADIO_875_108)
g_fm_resume_count_down_500ms = fm_resume_countdown_500ms;
#endif
}