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

keypad-5 scanlist toggle fixed

This commit is contained in:
OneOfEleven
2023-09-21 12:21:25 +01:00
parent b02d46f66a
commit 4a0a5a9589
5 changed files with 8 additions and 4 deletions

View File

@ -204,10 +204,13 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
gRequestDisplayScreen = gScreenToDisplay;
#else
// toggle scanlist-1
gTxVfo->SCANLIST1_PARTICIPATION = gTxVfo->SCANLIST1_PARTICIPATION ? 0 : 1;
SETTINGS_UpdateChannel(gTxVfo->CHANNEL_SAVE, gTxVfo, true);
gVfoConfigureMode = VFO_CONFIGURE_1;
gFlagResetVfos = true;
if (gScreenToDisplay != DISPLAY_SCANNER)
{
gTxVfo->SCANLIST1_PARTICIPATION = gTxVfo->SCANLIST1_PARTICIPATION ? 0 : 1;
SETTINGS_UpdateChannel(gTxVfo->CHANNEL_SAVE, gTxVfo, true);
gVfoConfigureMode = VFO_CONFIGURE_1;
gFlagResetVfos = true;
}
#endif
#endif
break;