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