From f4acafb541caecb291a82692f2d1918e90972019 Mon Sep 17 00:00:00 2001 From: Armel FAUVEAU Date: Sun, 25 Jan 2026 01:12:25 +0100 Subject: [PATCH] Fix limit --- App/settings.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/App/settings.c b/App/settings.c index afad532f..f32f8787 100644 --- a/App/settings.c +++ b/App/settings.c @@ -260,7 +260,10 @@ gEeprom.FreqChannel[1] = IS_FREQ_CHANNEL(Data16[5]) ? Data16[5] : (FREQ_CHANNE // 0F18..0F1F PY25Q16_ReadBuffer(0x00A130, Data, 8); - gEeprom.SCAN_LIST_DEFAULT = ((Data[0] & 0x7F) <= (MR_CHANNELS_LIST + 1)) ? (Data[0] & 0x7F) : 0; + gEeprom.SCAN_LIST_DEFAULT = + (((Data[0] & 0x7F) >= 1) && ((Data[0] & 0x7F) <= (MR_CHANNELS_LIST + 1))) + ? (Data[0] & 0x7F) + : 1; gEeprom.SCAN_LIST_ENABLED = (Data[0] >> 7) & 0x01; gEeprom.SCANLIST_PRIORITY_CH[0] =