Skip to content

Commit 92aed53

Browse files
authored
Fix: millis() rollover in smart shunt loop()
1 parent 0a9a856 commit 92aed53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/VictronSmartShunt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void VictronSmartShunt::loop()
3737
{
3838
VeDirectShunt.loop();
3939

40-
if (VeDirectShunt.getLastUpdate() <= _lastUpdate) { return; }
40+
if (VeDirectShunt.getLastUpdate() == _lastUpdate) { return; }
4141

4242
_stats->updateFrom(VeDirectShunt.getData());
4343
_lastUpdate = VeDirectShunt.getLastUpdate();

0 commit comments

Comments
 (0)