Skip to content

Commit f741893

Browse files
authored
Merge pull request #19 from pm73/patch-1
change loop to delay so ESP8266 can do Wi-Fi tasks
2 parents 5cafb34 + 4f66f97 commit f741893

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Adafruit_BME280.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ void Adafruit_BME280::takeForcedMeasurement()
303303
write8(BME280_REGISTER_CONTROL, _measReg.get());
304304
// wait until measurement has been completed, otherwise we would read
305305
// the values from the last measurement
306-
while (read8(BME280_REGISTER_STATUS) & 0x08);
306+
while (read8(BME280_REGISTER_STATUS) & 0x08)
307+
delay(1);
307308
}
308309
}
309310

0 commit comments

Comments
 (0)