Wire.endTransmission after Wire.requestFrom is not okay.
Koepel opened this issue · comments
In two places there is a Wire.endTransmission after a Wire.requestFrom.
The Wire.requestFrom is a complete I2C transmission on its own, it should not be followed by a Wire.endTransmission.
The Wire.endTransmission transmits the bytes in the buffer that are written with Wire.write and waits until the I2C transmission (to write date) has finished.