Fix bug on exclude with scan ALL (thank you mrkusypl)

This commit is contained in:
Armel FAUVEAU
2024-07-26 02:30:21 +02:00
parent ec2c470a90
commit 236e0b4124

View File

@@ -278,8 +278,8 @@ static void NextMemChannel(void)
}
if (!enabled || chan == 0xff)
{
chan = RADIO_FindNextChannel(gNextMrChannel + gScanStateDir, gScanStateDir, (gEeprom.SCAN_LIST_DEFAULT < 5) ? true : false, gEeprom.SCAN_LIST_DEFAULT);
{
chan = RADIO_FindNextChannel(gNextMrChannel + gScanStateDir, gScanStateDir, true, gEeprom.SCAN_LIST_DEFAULT);
if (chan == 0xFF)
{ // no valid channel found
chan = MR_CHANNEL_FIRST;