mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-28 12:42:00 +00:00
Catch comparison issue
This commit is contained in:
@@ -299,7 +299,7 @@ void menuHandler::FrequencySlotPicker()
|
|||||||
|
|
||||||
// Start highlight on current channel if possible, otherwise on "1"
|
// Start highlight on current channel if possible, otherwise on "1"
|
||||||
int initial = (int)config.lora.channel_num + 1;
|
int initial = (int)config.lora.channel_num + 1;
|
||||||
if (initial < 2 || initial > (int)numChannels)
|
if (initial < 2 || initial > (int)numChannels + 1)
|
||||||
initial = 1;
|
initial = 1;
|
||||||
bannerOptions.InitialSelected = initial;
|
bannerOptions.InitialSelected = initial;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user