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:
@@ -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);
|
||||
|
4
ui/ui.c
4
ui/ui.c
@@ -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;
|
||||
|
Reference in New Issue
Block a user