the Wire.requestFrom() is followed by a Wire.available(). The return value of those Wire.available() is not used, so you may remove all those Wire.available().
When the Wire.requestFrom() returns, the I2C bus activity has finished and data is waiting in a buffer inside the Wire library. The Wire.available() return the number of bytes that are in that buffer.
In the files:
the
Wire.requestFrom()
is followed by aWire.available()
. The return value of thoseWire.available()
is not used, so you may remove all thoseWire.available()
.When the
Wire.requestFrom()
returns, the I2C bus activity has finished and data is waiting in a buffer inside the Wire library. TheWire.available()
return the number of bytes that are in that buffer.