debug: disable BMS BLE during LilyGO AP bringup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user