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