mirror of
https://github.com/justcallmekoko/ESP32Marauder.git
synced 2026-08-03 01:16:07 -07:00
Fix crash with too many APs on menu
This commit is contained in:
@@ -1674,7 +1674,12 @@ void MenuFunctions::RunSetup()
|
||||
addNodes(&wifiAPMenu, text09, TFT_LIGHTGREY, NULL, 0, [this]() {
|
||||
changeMenu(wifiAPMenu.parentMenu);
|
||||
});
|
||||
for (int i = 0; i < access_points->size(); i++) {
|
||||
int menu_limit;
|
||||
if (access_points->size() <= BUTTON_ARRAY_LEN)
|
||||
menu_limit = access_points->size();
|
||||
else
|
||||
menu_limit = BUTTON_ARRAY_LEN;
|
||||
for (int i = 0; i < menu_limit - 1; i++) {
|
||||
addNodes(&wifiAPMenu, access_points->get(i).essid, TFT_CYAN, NULL, KEYBOARD_ICO, [this, i](){
|
||||
AccessPoint new_ap = access_points->get(i);
|
||||
new_ap.selected = !access_points->get(i).selected;
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
#define POLISH_POTATO
|
||||
|
||||
//#define MARAUDER_MINI
|
||||
#define MARAUDER_V4
|
||||
//#define MARAUDER_V4
|
||||
//#define MARAUDER_V6
|
||||
//#define MARAUDER_KIT
|
||||
//#define GENERIC_ESP32
|
||||
//#define MARAUDER_FLIPPER
|
||||
#define MARAUDER_FLIPPER
|
||||
|
||||
#define MARAUDER_VERSION "v0.9.17"
|
||||
#define MARAUDER_VERSION "v0.9.18"
|
||||
|
||||
//// BUTTON DEFINITIONS
|
||||
#ifdef MARAUDER_MINI
|
||||
|
||||
Reference in New Issue
Block a user