Merge pull request #19 from pm73/patch-1
change loop to delay so ESP8266 can do Wi-Fi tasks
This commit is contained in:
commit
f741893e28
|
|
@ -303,7 +303,8 @@ void Adafruit_BME280::takeForcedMeasurement()
|
||||||
write8(BME280_REGISTER_CONTROL, _measReg.get());
|
write8(BME280_REGISTER_CONTROL, _measReg.get());
|
||||||
// wait until measurement has been completed, otherwise we would read
|
// wait until measurement has been completed, otherwise we would read
|
||||||
// the values from the last measurement
|
// the values from the last measurement
|
||||||
while (read8(BME280_REGISTER_STATUS) & 0x08);
|
while (read8(BME280_REGISTER_STATUS) & 0x08)
|
||||||
|
delay(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue