0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-18 22:29:50 +03:00

added remove ignored freq from list (long press MENU)

This commit is contained in:
OneOfEleven
2023-11-04 13:18:26 +00:00
parent c502345b33
commit 51ac6fc333
4 changed files with 18 additions and 2 deletions

View File

@ -753,8 +753,24 @@ void MAIN_Key_MENU(const bool key_pressed, const bool key_held)
g_fkey_pressed = false;
g_update_status = true;
#ifdef ENABLE_COPY_CHAN_TO_VFO_TO_CHAN
#ifdef ENABLE_SCAN_IGNORE_LIST
if (g_scan_state_dir == SCAN_STATE_DIR_OFF &&
g_css_scan_mode == CSS_SCAN_MODE_OFF &&
FI_freq_ignored(g_rx_vfo->p_rx->frequency) >= 0)
{ // remove the frequency from the ignore list
FI_sub_freq_ignored(g_rx_vfo->p_rx->frequency);
g_update_display = true;
}
#ifdef ENABLE_COPY_CHAN_TO_VFO_TO_CHAN
else
MAIN_copy_mem_vfo_mem();
#endif
#elif defined(ENABLE_COPY_CHAN_TO_VFO_TO_CHAN)
MAIN_copy_mem_vfo_mem();
#endif
}
}