0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 15:08:37 +03:00

Fixed side key scan start AND stop

This commit is contained in:
OneOfEleven
2023-09-20 11:23:45 +01:00
parent dee38f429f
commit a3aa3da2db
8 changed files with 102 additions and 64 deletions

View File

@ -160,7 +160,8 @@ void ACTION_Scan(bool bRestart)
#endif
if (gScreenToDisplay != DISPLAY_SCANNER)
{
{ // not scanning
RADIO_SelectVfos();
#ifdef ENABLE_NOAA
@ -192,6 +193,18 @@ void ACTION_Scan(bool bRestart)
}
}
}
else
if (!bRestart)
{ // scanning
SCANNER_Stop();
#ifdef ENABLE_VOICE
gAnotherVoiceID = VOICE_ID_SCANNING_STOP;
#endif
gRequestDisplayScreen = DISPLAY_MAIN;
}
}
void ACTION_Vox(void)