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.
1 parent 53375d8 commit cad6977Copy full SHA for cad6977
DHT.cpp
@@ -27,7 +27,7 @@ void DHT::begin(void) {
27
// Using this value makes sure that millis() - lastreadtime will be
28
// >= MIN_INTERVAL right away. Note that this assignment wraps around,
29
// but so will the subtraction.
30
- _lastreadtime = -MIN_INTERVAL;
+ _lastreadtime = millis()-MIN_INTERVAL;
31
DEBUG_PRINT("Max clock cycles: "); DEBUG_PRINTLN(_maxcycles, DEC);
32
}
33
0 commit comments