Merge pull request #19 from pm73/patch-1

change loop to delay so ESP8266 can do Wi-Fi tasks
This commit is contained in:
Limor "Ladyada" Fried 2017-02-08 12:00:13 -05:00 committed by GitHub
commit f741893e28
1 changed files with 2 additions and 1 deletions

View File

@ -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);
} }
} }