Removed redundant check.

This commit is contained in:
Dual Tachyon 2023-09-01 12:29:47 +01:00
parent 8b808f2bf0
commit 33f9f21c4f

View File

@ -88,7 +88,6 @@ 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;
@ -106,8 +105,6 @@ void MAIN_Key_DIGITS(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
gRequestSaveChannel = 1;
return;
}
break;
}
}
}
} else {