Skip to content

Commit

Permalink
init variable on starting
Browse files Browse the repository at this point in the history
  • Loading branch information
Alois Klingler committed Nov 20, 2023
1 parent 7465e28 commit b95041e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/ModbusDtu.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class ModbusDtuClass {
void loop();

private:
uint32_t _lastPublish;
uint32_t _lastPublish = 0;
bool _isstarted = false;
};

Expand Down

0 comments on commit b95041e

Please sign in to comment.