debug: reduce LilyGO loop while preserving UART hook
This commit is contained in:
@@ -4277,22 +4277,9 @@ void setup() {
|
||||
|
||||
void loop() {
|
||||
server.handleClient();
|
||||
maintainStaWifi();
|
||||
handleDebugSerial();
|
||||
#if BMS_COMPILE_ENABLED
|
||||
updateBms();
|
||||
#endif
|
||||
updateAlarms();
|
||||
#if DASHBOARD_UART_ENABLED
|
||||
pollDashboardUart();
|
||||
#endif
|
||||
oledLoop();
|
||||
|
||||
static unsigned long lastSensorUpdate = 0;
|
||||
|
||||
if (millis() - lastSensorUpdate > 5000) {
|
||||
updateSensors();
|
||||
lastSensorUpdate = millis();
|
||||
logDebug("Sensor Update");
|
||||
}
|
||||
delay(2);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user