mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-20 23:18:39 +03:00
.
This commit is contained in:
17
app/menu.c
17
app/menu.c
@ -238,7 +238,10 @@ int MENU_GetLimits(uint8_t Cursor, int32_t *pMin, int32_t *pMax)
|
||||
case MENU_BUSY_CHAN_LOCK:
|
||||
case MENU_BEEP:
|
||||
#ifdef ENABLE_KEYLOCK
|
||||
case MENU_AUTO_KEY_LOCK:
|
||||
case MENU_AUTO_KEY_LOCK:
|
||||
#endif
|
||||
#ifdef ENABLE_SCAN_RANGES
|
||||
case MENU_SCAN_RANGES:
|
||||
#endif
|
||||
case MENU_S_ADD1:
|
||||
case MENU_S_ADD2:
|
||||
@ -632,6 +635,12 @@ void MENU_AcceptSetting(void)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_SCAN_RANGES
|
||||
case MENU_SCAN_RANGES:
|
||||
g_eeprom.config.setting.scan_ranges_enable = g_sub_menu_selection;
|
||||
break;
|
||||
#endif
|
||||
|
||||
case MENU_S_ADD1:
|
||||
g_tx_vfo->channel_attributes.scanlist1 = g_sub_menu_selection;
|
||||
SETTINGS_save_chan_attribs_name(g_tx_vfo->channel_save, g_tx_vfo);
|
||||
@ -1107,6 +1116,12 @@ void MENU_ShowCurrentSetting(void)
|
||||
break;
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_SCAN_RANGES
|
||||
case MENU_SCAN_RANGES:
|
||||
g_sub_menu_selection = g_eeprom.config.setting.scan_ranges_enable;
|
||||
break;
|
||||
#endif
|
||||
|
||||
case MENU_S_ADD1:
|
||||
g_sub_menu_selection = g_tx_vfo->channel_attributes.scanlist1;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user