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 b7b6ef8 commit 95b515a
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 @@ -1200,6 +1200,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 95b515a

Please sign in to comment.