introduce error counter to avoid spam

This commit is contained in:
2022-12-06 10:05:23 +01:00
parent 5b0ea91222
commit 05cad893a2
2 changed files with 9 additions and 4 deletions

View File

@ -27,6 +27,8 @@ class I2cCookie : public CookieIF {
size_t getMaxReplyLen() const;
std::string getDeviceFile() const;
uint8_t errorCounter = 0;
private:
address_t i2cAddress = 0;
size_t maxReplyLen = 0;