Rename to help me better remember/understand

This commit is contained in:
OneOfEleven 2023-09-28 22:34:43 +01:00
parent f0ad919418
commit bf12719158
4 changed files with 10 additions and 10 deletions

View File

@ -2305,8 +2305,8 @@ Skip:
{
SETTINGS_SaveChannel(gTxVfo->CHANNEL_SAVE, gEeprom.TX_CHANNEL, gTxVfo, gRequestSaveChannel);
if (gScreenToDisplay != DISPLAY_SCANNER)
if (gVfoConfigureMode == VFO_CONFIGURE_0)
gVfoConfigureMode = VFO_CONFIGURE_1;
if (gVfoConfigureMode == VFO_CONFIGURE_NONE)
gVfoConfigureMode = VFO_CONFIGURE;
}
else
{
@ -2318,7 +2318,7 @@ Skip:
gRequestSaveChannel = 0;
}
if (gVfoConfigureMode != VFO_CONFIGURE_0)
if (gVfoConfigureMode != VFO_CONFIGURE_NONE)
{
if (gFlagResetVfos)
{
@ -2332,7 +2332,7 @@ Skip:
gRequestDisplayScreen = DISPLAY_MAIN;
gFlagReconfigureVfos = true;
gVfoConfigureMode = VFO_CONFIGURE_0;
gVfoConfigureMode = VFO_CONFIGURE_NONE;
gFlagResetVfos = false;
}

View File

@ -182,7 +182,7 @@ static void processFKeyFunction(const KEY_Code_t Key, const bool beep)
{
gTxVfo->SCANLIST1_PARTICIPATION = gTxVfo->SCANLIST1_PARTICIPATION ? 0 : 1;
SETTINGS_UpdateChannel(gTxVfo->CHANNEL_SAVE, gTxVfo, true);
gVfoConfigureMode = VFO_CONFIGURE_1;
gVfoConfigureMode = VFO_CONFIGURE;
gFlagResetVfos = true;
}
#endif

View File

@ -317,7 +317,7 @@ void MENU_AcceptSetting(void)
case MENU_SQL:
gEeprom.SQUELCH_LEVEL = gSubMenuSelection;
gVfoConfigureMode = VFO_CONFIGURE_1;
gVfoConfigureMode = VFO_CONFIGURE;
break;
case MENU_STEP:
@ -512,14 +512,14 @@ void MENU_AcceptSetting(void)
case MENU_S_ADD1:
gTxVfo->SCANLIST1_PARTICIPATION = gSubMenuSelection;
SETTINGS_UpdateChannel(gTxVfo->CHANNEL_SAVE, gTxVfo, true);
gVfoConfigureMode = VFO_CONFIGURE_1;
gVfoConfigureMode = VFO_CONFIGURE;
gFlagResetVfos = true;
return;
case MENU_S_ADD2:
gTxVfo->SCANLIST2_PARTICIPATION = gSubMenuSelection;
SETTINGS_UpdateChannel(gTxVfo->CHANNEL_SAVE, gTxVfo, true);
gVfoConfigureMode = VFO_CONFIGURE_1;
gVfoConfigureMode = VFO_CONFIGURE;
gFlagResetVfos = true;
return;

4
misc.h
View File

@ -52,8 +52,8 @@ enum {
};
enum {
VFO_CONFIGURE_0 = 0,
VFO_CONFIGURE_1,
VFO_CONFIGURE_NONE = 0,
VFO_CONFIGURE,
VFO_CONFIGURE_RELOAD
};