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

Toggle scankists update

This commit is contained in:
OneOfEleven 2023-10-04 19:01:00 +01:00
parent a113d41c1a
commit 814e5edb07
3 changed files with 9 additions and 3 deletions

View File

@ -184,10 +184,16 @@ void ACTION_Scan(bool bRestart)
if (gScanState != SCAN_OFF) if (gScanState != SCAN_OFF)
{ {
SCANNER_Stop(); #if 1
// keep scanning but swap scan lists
gEeprom.SCAN_LIST_DEFAULT = (gEeprom.SCAN_LIST_DEFAULT + 1) & 1u;
gUpdateStatus = true;
#else
SCANNER_Stop();
#ifdef ENABLE_VOICE #ifdef ENABLE_VOICE
gAnotherVoiceID = VOICE_ID_SCANNING_STOP; gAnotherVoiceID = VOICE_ID_SCANNING_STOP;
#endif
#endif #endif
} }
else else

Binary file not shown.

Binary file not shown.