Skip to content

Commit 3a21184

Browse files
committed
Yield while waiting for several milliseconds
Avoids problems on the ESP8266 which needs to run other network tasks regularly
1 parent 7ed2999 commit 3a21184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DallasTemperature.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ void DallasTemperature::blockTillConversionComplete(uint8_t bitResolution) {
425425
if (checkForConversion && !parasite) {
426426
unsigned long start = millis();
427427
while (!isConversionComplete() && (millis() - start < delms))
428-
;
428+
yield();
429429
} else {
430430
activateExternalPullup();
431431
delay(delms);

0 commit comments

Comments
 (0)