Skip to content

Commit

Permalink
Ignore first reading of HDC320x
Browse files Browse the repository at this point in the history
  • Loading branch information
tyeth committed Sep 23, 2024
1 parent 64ed524 commit f82d2b6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ class WipperSnapper_I2C_Driver_HDC302X : public WipperSnapper_I2C_Driver {

// set the HDC302X's data rate to 1 Hz lowest noise
_hdc302x->setAutoMode(EXIT_AUTO_MODE);

// discard first reading (It returned -45c for me once)
_hdc302x->readTemperatureHumidityOnDemand(_temp, _humidity,
TRIGGERMODE_LP0);
return true;
}

Expand Down

0 comments on commit f82d2b6

Please sign in to comment.