0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 22:31:25 +03:00

Fix for when channel scan has no scanlisted channels to scan

This commit is contained in:
OneOfEleven 2023-10-04 23:09:55 +01:00
parent 6e7f8b1877
commit a6324ffcf8
3 changed files with 6 additions and 2 deletions

View File

@ -702,7 +702,11 @@ static void MR_NextChannel(void)
{ {
chan = RADIO_FindNextChannel(gNextMrChannel + gScanState, gScanState, (gEeprom.SCAN_LIST_DEFAULT < 2) ? true : false, gEeprom.SCAN_LIST_DEFAULT); chan = RADIO_FindNextChannel(gNextMrChannel + gScanState, gScanState, (gEeprom.SCAN_LIST_DEFAULT < 2) ? true : false, gEeprom.SCAN_LIST_DEFAULT);
if (chan == 0xFF) if (chan == 0xFF)
return; { // no valid channel found
chan = MR_CHANNEL_FIRST;
// return;
}
gNextMrChannel = chan; gNextMrChannel = chan;
} }

Binary file not shown.

Binary file not shown.