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:
parent
6e7f8b1877
commit
a6324ffcf8
@ -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;
|
||||||
}
|
}
|
||||||
|
BIN
firmware.bin
BIN
firmware.bin
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user