From 92aed534a3cb8fe711cab06af954116d20dc1be2 Mon Sep 17 00:00:00 2001 From: Niko <129541740+SW-Niko@users.noreply.github.com> Date: Fri, 17 Jan 2025 20:21:20 +0100 Subject: [PATCH] Fix: millis() rollover in smart shunt loop() --- src/VictronSmartShunt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VictronSmartShunt.cpp b/src/VictronSmartShunt.cpp index c64f9a83a..1c5d567b3 100644 --- a/src/VictronSmartShunt.cpp +++ b/src/VictronSmartShunt.cpp @@ -37,7 +37,7 @@ void VictronSmartShunt::loop() { VeDirectShunt.loop(); - if (VeDirectShunt.getLastUpdate() <= _lastUpdate) { return; } + if (VeDirectShunt.getLastUpdate() == _lastUpdate) { return; } _stats->updateFrom(VeDirectShunt.getData()); _lastUpdate = VeDirectShunt.getLastUpdate();