0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 06:39:49 +03:00

Scanlist update

This commit is contained in:
OneOfEleven
2023-10-04 18:54:26 +01:00
parent 429ac36ffe
commit b26b1fab95
7 changed files with 38 additions and 31 deletions

View File

@ -200,7 +200,7 @@ void ACTION_Scan(bool bRestart)
#endif
// clear the other vfo's rssi level (to hide the antenna symbol)
gVFO_RSSI_bar_level[gEeprom.RX_CHANNEL == 0] = 0;
gVFO_RSSI_bar_level[(gEeprom.RX_CHANNEL + 1) & 1u] = 0;
// let the user see DW is not active
gDualWatchActive = false;
@ -212,14 +212,20 @@ void ACTION_Scan(bool bRestart)
if (!bRestart)
{ // scanning
// swap scan lists
gEeprom.SCAN_LIST_DEFAULT = (gEeprom.SCAN_LIST_DEFAULT + 1) & 1u;
gUpdateStatus = true;
}
else
{ // stop scanning
gMonitor = false;
SCANNER_Stop();
#ifdef ENABLE_VOICE
gAnotherVoiceID = VOICE_ID_SCANNING_STOP;
#endif
gRequestDisplayScreen = DISPLAY_MAIN;
}
}

View File

@ -651,6 +651,7 @@ static void MAIN_Key_STAR(bool bKeyPressed, bool bKeyHeld)
return;
ACTION_Scan(false);
return;
}