From 0b3471ee91e06b4668c9010200db55bf655402bb Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 30 Jun 2026 00:32:53 -0600 Subject: [PATCH] debug: preserve UART hook in AP isolation loop --- .../overland-controller.ino | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/firmware/esp32/overland-controller/overland-controller.ino b/firmware/esp32/overland-controller/overland-controller.ino index e5e478f..999a525 100644 --- a/firmware/esp32/overland-controller/overland-controller.ino +++ b/firmware/esp32/overland-controller/overland-controller.ino @@ -4104,7 +4104,31 @@ void heapCheckpoint(const char* label) { } } + void setup() { + Serial.begin(115200); + delay(2000); + + Serial.println(); + Serial.println("LilyGO compiled-project AP isolation test"); + + WiFi.persistent(false); + WiFi.setSleep(false); + WiFi.mode(WIFI_AP); + + IPAddress ip(192, 168, 4, 1); + IPAddress gw(192, 168, 4, 1); + IPAddress mask(255, 255, 255, 0); + WiFi.softAPConfig(ip, gw, mask); + + bool ok = WiFi.softAP("Overland-Isolation", "12345678", 6, false, 2); + Serial.print("softAP result: "); + Serial.println(ok ? "OK" : "FAILED"); + Serial.print("AP IP: "); + Serial.println(WiFi.softAPIP()); +} + +void projectSetupDisabled() { Serial.begin(115200); delay(500); heapCheckpoint("setup:start"); @@ -4291,10 +4315,10 @@ void setup() { } void loop() { - dnsServer.processNextRequest(); #if DASHBOARD_UART_ENABLED pollDashboardUart(); #endif - delay(2); + delay(100); } +