mirror of
https://github.com/DualTachyon/uv-k5-firmware.git
synced 2025-01-18 17:03:58 +08:00
Removed redundant check.
This commit is contained in:
parent
8b808f2bf0
commit
33f9f21c4f
33
app/main.c
33
app/main.c
@ -88,25 +88,22 @@ void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
|
||||
for (i = 0; i < 7; i++) {
|
||||
if (Frequency <= gUpperLimitFrequencyBandTable[i] && (gLowerLimitFrequencyBandTable[i] <= Frequency)) {
|
||||
if (i < 7) {
|
||||
gAnotherVoiceID = (VOICE_ID_t)Key;
|
||||
if (gTxInfo->Band != i) {
|
||||
gTxInfo->Band = i;
|
||||
gEeprom.ScreenChannel[Vfo] = i + FREQ_CHANNEL_FIRST;
|
||||
gEeprom.FreqChannel[Vfo] = i + FREQ_CHANNEL_FIRST;
|
||||
SETTINGS_SaveVfoIndices();
|
||||
RADIO_ConfigureChannel(Vfo, 2);
|
||||
}
|
||||
Frequency += 75;
|
||||
gTxInfo->ConfigRX.Frequency = FREQUENCY_FloorToStep(
|
||||
Frequency,
|
||||
gTxInfo->StepFrequency,
|
||||
gLowerLimitFrequencyBandTable[gTxInfo->Band]
|
||||
);
|
||||
gRequestSaveChannel = 1;
|
||||
return;
|
||||
gAnotherVoiceID = (VOICE_ID_t)Key;
|
||||
if (gTxInfo->Band != i) {
|
||||
gTxInfo->Band = i;
|
||||
gEeprom.ScreenChannel[Vfo] = i + FREQ_CHANNEL_FIRST;
|
||||
gEeprom.FreqChannel[Vfo] = i + FREQ_CHANNEL_FIRST;
|
||||
SETTINGS_SaveVfoIndices();
|
||||
RADIO_ConfigureChannel(Vfo, 2);
|
||||
}
|
||||
break;
|
||||
Frequency += 75;
|
||||
gTxInfo->ConfigRX.Frequency = FREQUENCY_FloorToStep(
|
||||
Frequency,
|
||||
gTxInfo->StepFrequency,
|
||||
gLowerLimitFrequencyBandTable[gTxInfo->Band]
|
||||
);
|
||||
gRequestSaveChannel = 1;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user