diff --git a/firmware/esp32/overland-controller/config.h b/firmware/esp32/overland-controller/config.h index 8bd7398..724eda2 100644 --- a/firmware/esp32/overland-controller/config.h +++ b/firmware/esp32/overland-controller/config.h @@ -30,3 +30,6 @@ // Bring-up safety: serve a tiny root page to avoid AP client/browser heap crashes. #define LILYGO_BRINGUP_MINIMAL_WEB 1 + +// LilyGO bring-up isolation: disable BLE/BMS to test WiFi AP stability. +#define BMS_COMPILE_ENABLED 0 diff --git a/firmware/esp32/overland-controller/overland-controller.ino b/firmware/esp32/overland-controller/overland-controller.ino index fcf188d..a0cf4f0 100644 --- a/firmware/esp32/overland-controller/overland-controller.ino +++ b/firmware/esp32/overland-controller/overland-controller.ino @@ -4097,7 +4097,11 @@ void setup() { initRelays(); initSensors(); +#if BMS_COMPILE_ENABLED initBms(); +#else + Serial.println("BMS/BLE disabled for LilyGO bring-up test"); +#endif loadWifiConfig(); loadApConfig(); @@ -4231,7 +4235,9 @@ void loop() { server.handleClient(); maintainStaWifi(); handleDebugSerial(); +#if BMS_COMPILE_ENABLED updateBms(); +#endif updateAlarms(); #if DASHBOARD_UART_ENABLED pollDashboardUart();