Skip to content

Commit

Permalink
[DHT] add extra ms
Browse files Browse the repository at this point in the history
  • Loading branch information
uzi18 committed Nov 16, 2019
1 parent d6c78cc commit 88c6887
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_P005_DHT.ino
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ bool P005_do_plugin_read(struct EventStruct *event) {
digitalWrite(Plugin_005_DHT_Pin, LOW); // Pull low

switch (Par3) {
case P005_DHT11: delay(18); break; // minimum 18ms
case P005_DHT11: delay(19); break; // minimum 18ms
case P005_DHT22: delay(2); break; // minimum 1ms
case P005_DHT12: delay(200); break; // minimum 200ms
case P005_AM2301: delayMicroseconds(900); break;
Expand Down Expand Up @@ -196,7 +196,7 @@ bool P005_do_plugin_read(struct EventStruct *event) {
if (readingAborted)
return false;

// Checksum calculation is a Rollover Checksum by design!
// Checksum calculation is a Rollover Checksum by design!
byte dht_check_sum = (dht_dat[0] + dht_dat[1] + dht_dat[2] + dht_dat[3]) & 0xFF; // check check_sum
if (dht_dat[4] != dht_check_sum)
{
Expand Down

0 comments on commit 88c6887

Please sign in to comment.