0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-08-03 01:26:33 +03:00

more renaming to ease the pain

This commit is contained in:
OneOfEleven
2023-10-30 14:12:27 +00:00
parent 9a7e03ced5
commit 1517cfc655
13 changed files with 241 additions and 221 deletions

View File

@@ -68,7 +68,7 @@ void UI_DisplayFM(void)
{
memset(str, 0, sizeof(str));
if (g_fm_scan_state == FM_SCAN_OFF)
if (g_fm_scan_state_dir == FM_SCAN_STATE_DIR_OFF)
{
if (!g_eeprom.fm_channel_mode)
{
@@ -106,7 +106,7 @@ void UI_DisplayFM(void)
const unsigned int chan = g_fm_channel_position;
const uint32_t freq = g_fm_channels[chan];
UI_GenerateChannelString(str, chan, ' ');
if (FM_CheckValidChannel(chan))
if (FM_check_valid_channel(chan))
sprintf(str + strlen(str), " (%u.%u)", freq / 10, freq % 10);
}
else
@@ -144,7 +144,7 @@ void UI_DisplayFM(void)
// *************************************
// can't do this during FM radio - audio clicks else
if (g_fm_scan_state != FM_SCAN_OFF)
if (g_fm_scan_state_dir != FM_SCAN_STATE_DIR_OFF)
{
const uint16_t val_07 = BK1080_ReadRegister(0x07);
const uint16_t val_0A = BK1080_ReadRegister(0x0A);

View File

@@ -90,8 +90,8 @@ void GUI_SelectNextDisplay(gui_display_type_t Display)
g_css_scan_mode = CSS_SCAN_MODE_OFF;
g_scan_state_dir = SCAN_STATE_DIR_OFF;
#ifdef ENABLE_FMRADIO
g_fm_scan_state = FM_SCAN_OFF;
g_update_display = true;
g_fm_scan_state_dir = FM_SCAN_STATE_DIR_OFF;
g_update_display = true;
#endif
g_ask_for_confirmation = 0;
g_ask_to_save = false;