From 236e0b41248893bd4f2ac69ccfd7eb80f74ff5a2 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Fri, 26 Jul 2024 02:30:21 +0200 Subject: [PATCH] Fix bug on exclude with scan ALL (thank you mrkusypl) --- app/chFrScanner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/chFrScanner.c b/app/chFrScanner.c index a2904a3..5b5ae7e 100644 --- a/app/chFrScanner.c +++ b/app/chFrScanner.c @@ -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;