Skip to content

Commit

Permalink
Remove while(Wire.available() != length) (issue#3)
Browse files Browse the repository at this point in the history
Issue #3
  • Loading branch information
LowPowerLab committed Jun 6, 2018
1 parent 6523790 commit efac46b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion SFE_BMP180.cpp
Expand Up @@ -185,7 +185,6 @@ char SFE_BMP180::readBytes(unsigned char *values, char length)
if (_error == 0)
{
Wire.requestFrom(BMP180_ADDR,length);
while(Wire.available() != length) ; // wait until bytes are ready
for(x=0;x<length;x++)
{
values[x] = Wire.read();
Expand Down

0 comments on commit efac46b

Please sign in to comment.