Skip to content

Commit

Permalink
Fix: millis() rollover in smart shunt loop()
Browse files Browse the repository at this point in the history
  • Loading branch information
SW-Niko authored Jan 17, 2025
1 parent 0a9a856 commit 92aed53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VictronSmartShunt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 92aed53

Please sign in to comment.