debug: preserve UART hook in AP isolation loop

This commit is contained in:
2026-06-30 00:32:53 -06:00
parent 77459f49c7
commit 0b3471ee91
@@ -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);
}