mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-08 04:28:47 +00:00
Fix warnings during compile time
This commit is contained in:
parent
8fda42b08d
commit
81367a5f8a
@ -1272,7 +1272,7 @@ void menuHandler::FrameToggles_menu()
|
|||||||
bannerOptions.optionsEnumPtr = optionsEnumArray;
|
bannerOptions.optionsEnumPtr = optionsEnumArray;
|
||||||
bannerOptions.InitialSelected = lastSelectedIndex; // Use index, not enum value
|
bannerOptions.InitialSelected = lastSelectedIndex; // Use index, not enum value
|
||||||
|
|
||||||
bannerOptions.bannerCallback = [optionsEnumArray, options](int selected) mutable -> void {
|
bannerOptions.bannerCallback = [options](int selected) mutable -> void {
|
||||||
// Find the index of selected in optionsEnumArray
|
// Find the index of selected in optionsEnumArray
|
||||||
int idx = 0;
|
int idx = 0;
|
||||||
for (; idx < options; ++idx) {
|
for (; idx < options; ++idx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user