Skip to content

Commit

Permalink
MH-Z19 sensor has disabled auto-calibrating xoseperez#1580
Browse files Browse the repository at this point in the history
  • Loading branch information
eschava committed Feb 28, 2019
1 parent e88a860 commit 86b1e88
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions code/espurna/sensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,15 @@ void _sensorConfigure() {

#endif // PZEM004T_SUPPORT

#if MHZ19_SUPPORT
if (_sensors[i]->getID() == SENSOR_MHZ19_ID) {
MHZ19Sensor * sensor = (MHZ19Sensor *) _sensors[i];
if (getSetting("mhz19CalibrateAuto", 0).toInt() == 1) {
sensor->calibrateAuto(true);
}
}
#endif // MHZ19_SUPPORT

}

// Update filter sizes
Expand Down

0 comments on commit 86b1e88

Please sign in to comment.