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 970795f commit cc4c7baCopy full SHA for cc4c7ba
DHT.cpp
@@ -318,11 +318,7 @@ bool DHT::read(bool force) {
318
for (int i = 0; i < 40; ++i) {
319
uint32_t lowCycles = cycles[2 * i];
320
uint32_t highCycles = cycles[2 * i + 1];
321
- if ((lowCycles == TIMEOUT) || (highCycles == TIMEOUT)) {
322
- DEBUG_PRINTLN(F("DHT timeout waiting for pulse."));
323
- _lastresult = false;
324
- return _lastresult;
325
- }
+
326
data[i / 8] <<= 1;
327
// Now compare the low and high cycle times to see if the bit is a 0 or 1.
328
if (highCycles > lowCycles) {
0 commit comments