debug: add boot loop crash markers
This commit is contained in:
@@ -4182,10 +4182,15 @@ void setup() {
|
||||
}
|
||||
|
||||
void loop() {
|
||||
Serial.println("LOOP: server");
|
||||
server.handleClient();
|
||||
Serial.println("LOOP: wifi");
|
||||
maintainStaWifi();
|
||||
Serial.println("LOOP: debug");
|
||||
handleDebugSerial();
|
||||
Serial.println("LOOP: bms");
|
||||
updateBms();
|
||||
Serial.println("LOOP: alarms");
|
||||
updateAlarms();
|
||||
#if DASHBOARD_UART_ENABLED
|
||||
pollDashboardUart();
|
||||
@@ -4195,6 +4200,7 @@ void loop() {
|
||||
static unsigned long lastSensorUpdate = 0;
|
||||
|
||||
if (millis() - lastSensorUpdate > 5000) {
|
||||
Serial.println("LOOP: sensors");
|
||||
updateSensors();
|
||||
lastSensorUpdate = millis();
|
||||
logDebug("Sensor Update");
|
||||
|
||||
Reference in New Issue
Block a user