mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-04-28 22:31:25 +03:00
added remove ignored freq from list (long press MENU)
This commit is contained in:
parent
c502345b33
commit
51ac6fc333
@ -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_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_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_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_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 := 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)
|
ENABLE_AM_FIX_SHOW_DATA := 1 show debug data for the AM fix (still tweaking it)
|
||||||
|
18
app/main.c
18
app/main.c
@ -753,8 +753,24 @@ void MAIN_Key_MENU(const bool key_pressed, const bool key_held)
|
|||||||
g_fkey_pressed = false;
|
g_fkey_pressed = false;
|
||||||
g_update_status = true;
|
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();
|
MAIN_copy_mem_vfo_mem();
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user