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 edcd0e0 commit 53375d8Copy full SHA for 53375d8
DHT.cpp
@@ -124,7 +124,7 @@ boolean DHT::read(bool force) {
124
// Check if sensor was read less than two seconds ago and return early
125
// to use last reading.
126
uint32_t currenttime = millis();
127
- if (!force && ((currenttime - _lastreadtime) < 2000)) {
+ if (!force && ((currenttime - _lastreadtime) < MIN_INTERVAL)) {
128
return _lastresult; // return last correct measurement
129
}
130
_lastreadtime = currenttime;
0 commit comments