Skip to content

Commit

Permalink
Code cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
jachik authored Dec 17, 2024
1 parent cc4c7ba commit 382f84a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DHT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ bool DHT::read(bool force) {
cycles[i] = expectPulse(LOW);
cycles[i + 1] = expectPulse(HIGH);

if (cycles[i]==TIMEOUT || cycles[i+1]==TIMEOUT){
if (cycles[i] == TIMEOUT || cycles[i + 1] == TIMEOUT) {
DEBUG_PRINTLN(F("DHT timeout waiting for data signal."));
_lastresult = false;
return _lastresult;
Expand Down

0 comments on commit 382f84a

Please sign in to comment.