Catch comparison issue

This commit is contained in:
Jason P
2026-01-17 23:36:29 -06:00
parent bdf45a4f77
commit c9eceb0c66

View File

@@ -299,7 +299,7 @@ void menuHandler::FrequencySlotPicker()
// Start highlight on current channel if possible, otherwise on "1"
int initial = (int)config.lora.channel_num + 1;
if (initial < 2 || initial > (int)numChannels)
if (initial < 2 || initial > (int)numChannels + 1)
initial = 1;
bannerOptions.InitialSelected = initial;