diff --git a/libraries/Wire/src/Wire.cpp b/libraries/Wire/src/Wire.cpp index bccf2bf6038..fed35ba71cc 100644 --- a/libraries/Wire/src/Wire.cpp +++ b/libraries/Wire/src/Wire.cpp @@ -45,8 +45,8 @@ TwoWire::TwoWire(uint8_t bus_num) ,txAddress(0) ,txQueued(0) ,transmitting(0) - ,_timeOutMillis(50) ,last_error(I2C_ERROR_OK) + ,_timeOutMillis(50) ,_dump(false) {} diff --git a/libraries/Wire/src/Wire.h b/libraries/Wire/src/Wire.h index 0b69d7f72e2..1466bc03133 100644 --- a/libraries/Wire/src/Wire.h +++ b/libraries/Wire/src/Wire.h @@ -60,7 +60,7 @@ class TwoWire: public Stream void onRequestService(void); void onReceiveService(uint8_t*, int); */ - i2c_err_t last_error; // @stickBreaker from esp32-hal-i2c.h + i2c_err_t last_error; // @stickBreaker from esp32-hal-i2c.h i2c_err_t processQueue(uint32_t *readCount); uint16_t _timeOutMillis; bool _dump;