We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a333d1b + 4851c33 commit ed7826bCopy full SHA for ed7826b
DallasTemperature.cpp
@@ -429,11 +429,11 @@ bool DallasTemperature::requestTemperaturesByAddress(
429
// Continue to check if the IC has responded with a temperature
430
void DallasTemperature::blockTillConversionComplete(uint8_t bitResolution) {
431
432
- int delms = millisToWaitForConversion(bitResolution);
+ unsigned long delms = millisToWaitForConversion(bitResolution);
433
if (checkForConversion && !parasite) {
434
- unsigned long now = millis();
435
- while (!isConversionComplete() && (millis() - delms < now))
436
- ;
+ unsigned long start = millis();
+ while (!isConversionComplete() && (millis() - start < delms))
+ yield();
437
} else {
438
activateExternalPullup();
439
delay(delms);
0 commit comments