Fix scan list + ALL

This commit is contained in:
Armel FAUVEAU committed 2026-01-27 23:12:19 +01:00
1 parent 91e2f61099
commit 4c41ff7929
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ bool RADIO_CheckValidChannel(uint16_t channel, bool checkScanList, uint8_t scanL
return false;
if (att->band > BAND7_470MHz)
return false;
if (!checkScanList || (scanList > MR_CHANNELS_LIST && att->scanlist != 0))
if (!checkScanList || (scanList > MR_CHANNELS_LIST && att->scanlist != 0) || (scanList > 0 && att->scanlist == MR_CHANNELS_LIST + 1))
return true;
if ((scanList == 0) || (scanList != att->scanlist)) {
return false;