Radio.c: Simplify check.

This commit is contained in:
Wouter van Gulik 2023-09-17 22:29:31 +02:00 committed by Dual Tachyon
parent 10b08d7c79
commit b13f1de204

View File

@ -95,7 +95,7 @@ uint8_t RADIO_FindNextChannel(uint8_t Channel, int8_t Direction, bool bCheckScan
{
uint8_t i;
for (i = 0; i < 200; i++) {
for (i = 0; i <= MR_CHANNEL_LAST; i++) {
if (Channel == 0xFF) {
Channel = MR_CHANNEL_LAST;
} else if (Channel > MR_CHANNEL_LAST) {