Skip to content

Commit

Permalink
Simple fix for MH-Z19 B version. letscontrolit#529
Browse files Browse the repository at this point in the history
  • Loading branch information
psy0rz authored and TD-er committed Oct 16, 2017
1 parent 4fa1c2f commit 069b00c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_P049_MHZ19.ino
Expand Up @@ -292,7 +292,7 @@ boolean Plugin_049(byte function, struct EventStruct *event, String& string)
success = false;

// If s = 0x40 the reading is stable; anything else should be ignored
} else if (s < 64) {
} else if (s > 0 && s < 64) {

log += F("Unstable reading, ignoring! ");
success = false;
Expand Down

0 comments on commit 069b00c

Please sign in to comment.