0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

I lied, this is the real fix

This commit is contained in:
OneOfEleven 2023-10-17 17:28:38 +01:00
parent 4cdd17888c
commit 0974b2e0a6

View File

@ -57,8 +57,6 @@ static void MAIN_stop_scan(void)
void toggle_chan_scanlist(void)
{ // toggle the selected channels scanlist setting
if (g_scan_state_dir != SCAN_STATE_DIR_OFF)
{
if (g_screen_to_display != DISPLAY_MAIN ||
!IS_USER_CHANNEL(g_tx_vfo->channel_save) ||
g_current_function == FUNCTION_TRANSMIT ||
@ -68,14 +66,14 @@ void toggle_chan_scanlist(void)
return;
}
if (g_scan_pause_10ms > 0 &&
if (g_scan_state_dir != SCAN_STATE_DIR_OFF &&
g_scan_pause_10ms > 0 &&
g_scan_pause_10ms <= (200 / 10) &&
!g_scan_pause_mode)
{
g_beep_to_play = BEEP_500HZ_60MS_DOUBLE_BEEP_OPTIONAL;
return;
}
}
if (g_tx_vfo->scanlist_1_participation)
{