diff --git a/README.md b/README.md index 864ab63..654ab4e 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ ENABLE_SHOW_CHARGE_LEVEL := 0 show the charge level when the radio ENABLE_REVERSE_BAT_SYMBOL := 1 mirror the battery symbol on the status bar (+ pole on the right) ENABLE_FREQ_SEARCH_TIMEOUT := 0 timeout if FREQ not found when using F+4 search function ENABLE_CODE_SEARCH_TIMEOUT := 0 timeout if CTCSS/CDCSS not found when using F+* search function -ENABLE_SCAN_IGNORE_LIST := 0 ignore selected frequencies when scanning - frequencies added to list with */scan button whilst scanning +ENABLE_SCAN_IGNORE_LIST := 0 ignore selected frequencies when scanning - add freqs to list with short */scan button when scanning, remove freq from list with long press MENU when not scanning ENABLE_KILL_REVIVE := 0 include kill and revive code ENABLE_AM_FIX := 1 dynamically adjust the front end gains when in AM mode to help prevent AM demodulator saturation, ignore the on-screen RSSI level (for now) ENABLE_AM_FIX_SHOW_DATA := 1 show debug data for the AM fix (still tweaking it) diff --git a/app/main.c b/app/main.c index 561289f..0911e6e 100644 --- a/app/main.c +++ b/app/main.c @@ -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 } } diff --git a/firmware.bin b/firmware.bin index f23bcc8..0f72a0e 100644 Binary files a/firmware.bin and b/firmware.bin differ diff --git a/firmware.packed.bin b/firmware.packed.bin index 897be0a..25ca5df 100644 Binary files a/firmware.packed.bin and b/firmware.packed.bin differ