From 0b55ede1fc0767911e2598d73a6f91f6079539c7 Mon Sep 17 00:00:00 2001 From: nick Date: Wed, 1 Jul 2026 00:46:46 -0600 Subject: [PATCH] debug: add sensor update timing globals --- firmware/esp32/overland-controller/config.h | 2 +- firmware/esp32/overland-controller/overland-controller.ino | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/firmware/esp32/overland-controller/config.h b/firmware/esp32/overland-controller/config.h index 6192a43..9b20f0b 100644 --- a/firmware/esp32/overland-controller/config.h +++ b/firmware/esp32/overland-controller/config.h @@ -14,7 +14,7 @@ #define RELAY_SHIFT_REGISTER_PIN 255 // GPIO4 is used by the LilyGO relay shift-register OE pin. -#define ONEWIRE_PIN 21 +#define ONEWIRE_PIN 15 #define IGNITION_PIN 34 diff --git a/firmware/esp32/overland-controller/overland-controller.ino b/firmware/esp32/overland-controller/overland-controller.ino index 2ca2865..a361dfe 100644 --- a/firmware/esp32/overland-controller/overland-controller.ino +++ b/firmware/esp32/overland-controller/overland-controller.ino @@ -1509,6 +1509,9 @@ setInterval(load,3000); WebServer server(80); +unsigned long lastSensorUpdate = 0; +const unsigned long SENSOR_INTERVAL = 5000; + #define API_V1(path) "/api/v1" path int findTempConfigIndexById(const String& id) {