Fix unused searchStart warning in chFrScanner.c

This commit is contained in:
Armel FAUVEAU committed 2026-08-09 16:46:58 +02:00
1 parent 5715cd27ef
commit e4408fcb55
1 file changed
+2
+2
View File
@@ -1133,7 +1133,9 @@ static void NextMemChannel(void)
if (!enabled || chan == 0xFFFF)
{
#ifdef ENABLE_FEAT_F4HWN_SCAN_FASTER
const uint16_t searchStart = gNextMrChannel;
#endif
chan = RADIO_FindNextChannel(gNextMrChannel + gScanStateDir, gScanStateDir, true, gEeprom.SCAN_LIST_DEFAULT);
if (chan == 0xFFFF)
{ // no valid channel found -> wrapping back to the first channel