0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00
This commit is contained in:
OneOfEleven
2023-11-10 08:22:03 +00:00
parent f20191568a
commit 51c883de0f
7 changed files with 66 additions and 30 deletions

View File

@ -190,7 +190,7 @@ int FM_check_frequency_lock(const uint16_t frequency, const uint16_t lower_limit
if (afc_railed || snr < 2 || rssi < 10 || abs(freq_offset) > 250)
goto Bail;
if (frequency >= lower_limit && abs(((int)BK1080_freq_base - frequency)) == 1)
if (frequency >= lower_limit && abs(((int)BK1080_freq_base - (int)frequency)) == 1)
if (abs(BK1080_freq_offset) < 20)
goto Bail;

View File

@ -873,7 +873,8 @@ void MAIN_Key_STAR(bool key_pressed, bool key_held)
#ifdef ENABLE_SCAN_IGNORE_LIST
if (scanning_paused())
{
FI_add_freq_ignored(g_rx_vfo->freq_config_rx.frequency);
if (!FI_add_freq_ignored(g_rx_vfo->freq_config_rx.frequency))
g_beep_to_play = BEEP_500HZ_60MS_DOUBLE_BEEP_OPTIONAL; // not added for some reason
// immediately continue the scan
g_scan_tick_10ms = 0;