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.
|
// Bring-up safety: serve a tiny root page to avoid AP client/browser heap crashes.
|
||||||
#define LILYGO_BRINGUP_MINIMAL_WEB 1
|
#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();
|
initRelays();
|
||||||
initSensors();
|
initSensors();
|
||||||
|
#if BMS_COMPILE_ENABLED
|
||||||
initBms();
|
initBms();
|
||||||
|
#else
|
||||||
|
Serial.println("BMS/BLE disabled for LilyGO bring-up test");
|
||||||
|
#endif
|
||||||
|
|
||||||
loadWifiConfig();
|
loadWifiConfig();
|
||||||
loadApConfig();
|
loadApConfig();
|
||||||
@@ -4231,7 +4235,9 @@ void loop() {
|
|||||||
server.handleClient();
|
server.handleClient();
|
||||||
maintainStaWifi();
|
maintainStaWifi();
|
||||||
handleDebugSerial();
|
handleDebugSerial();
|
||||||
|
#if BMS_COMPILE_ENABLED
|
||||||
updateBms();
|
updateBms();
|
||||||
|
#endif
|
||||||
updateAlarms();
|
updateAlarms();
|
||||||
#if DASHBOARD_UART_ENABLED
|
#if DASHBOARD_UART_ENABLED
|
||||||
pollDashboardUart();
|
pollDashboardUart();
|
||||||
|
|||||||
Reference in New Issue
Block a user