From 44a0202895520f0537ec0cb4bce630bbfd904477 Mon Sep 17 00:00:00 2001 From: nick Date: Mon, 29 Jun 2026 23:17:49 -0600 Subject: [PATCH] debug: disable STA reconnect during LilyGO bringup --- firmware/esp32/overland-controller/config.h | 3 +++ .../esp32/overland-controller/overland-controller.ino | 9 +++------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/firmware/esp32/overland-controller/config.h b/firmware/esp32/overland-controller/config.h index 0255226..c0a61e9 100644 --- a/firmware/esp32/overland-controller/config.h +++ b/firmware/esp32/overland-controller/config.h @@ -24,3 +24,6 @@ #define DASHBOARD_UART_ENABLED 0 #define DASHBOARD_UART_BAUD 115200 + +// Bring-up safety: keep AP stable while validating LilyGO hardware. +#define WIFI_STA_AUTOCONNECT_ENABLED 0 diff --git a/firmware/esp32/overland-controller/overland-controller.ino b/firmware/esp32/overland-controller/overland-controller.ino index 6e1cc5f..371ab9c 100644 --- a/firmware/esp32/overland-controller/overland-controller.ino +++ b/firmware/esp32/overland-controller/overland-controller.ino @@ -2127,6 +2127,9 @@ void connectStaWifi() { } void maintainStaWifi() { +#if !WIFI_STA_AUTOCONNECT_ENABLED + return; +#endif if (wifiNetworkCount <= 0) return; if (WiFi.status() == WL_CONNECTED) return; @@ -4182,15 +4185,10 @@ void setup() { } void loop() { - Serial.println("LOOP: server"); server.handleClient(); - Serial.println("LOOP: wifi"); maintainStaWifi(); - Serial.println("LOOP: debug"); handleDebugSerial(); - Serial.println("LOOP: bms"); updateBms(); - Serial.println("LOOP: alarms"); updateAlarms(); #if DASHBOARD_UART_ENABLED pollDashboardUart(); @@ -4200,7 +4198,6 @@ void loop() { static unsigned long lastSensorUpdate = 0; if (millis() - lastSensorUpdate > 5000) { - Serial.println("LOOP: sensors"); updateSensors(); lastSensorUpdate = millis(); logDebug("Sensor Update");