Open
Description
In the file "Arduino-SRF/src/SonarSRF.cpp" there is a while (Wire.available() < length);
after the Wire.requestFrom(). That line can be removed, because there is nothing to wait for.
When the Wire.requestFrom() returns, the I2C transaction on the bus has completely finished and the received data is waiting in a buffer in the Wire library.