CalPolySpaceSystems/UpBoard-Old

No need to wait after Wire.requestFrom()

Closed this issue · 0 comments

In the file "A3G4250D.cpp" there is a while-loop to wait for something after a Wire.requestFrom in three places. Those while-loops can be removed, there is nothing to wait for.

When a Wire.requestFrom() returns, the I2C transaction has completely finished and the received data is waiting in a buffer in the Wire library.