Skip to content

Commit

Permalink
Merge branch 'version_name' into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Dec 14, 2021
2 parents 275c083 + adf9882 commit 083dd78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ void Sensors::init(int pms_type, int pms_rx, int pms_tx) {
/// set loop time interval for each sensor sample
void Sensors::setSampleTime(int seconds) {
sample_time = seconds;
Serial.println("-->[SLIB] new sample time :\t" + String(seconds));
Serial.println("-->[SLIB] new sample time :\t" + String(seconds));
if(getMainDeviceSelected().equals("SCD30")){
scd30.setMeasurementInterval(seconds);
Serial.println("-->[SLIB] SCD30 interval time to: " + String(seconds));
if (devmode) Serial.println("-->[SLIB] SCD30 interval time :\t" + String(seconds));
}
}

Expand All @@ -111,7 +111,7 @@ void Sensors::setCO2RecalibrationFactor(int ppmValue)
Serial.println("-->[SLIB] SCD30 setting calibration to: " + String(ppmValue));
scd30.setForcedRecalibrationFactor(ppmValue);
}
if (getMainDeviceSelected().equals("CM1106")) {
if (getMainDeviceSelected().equals("CM1106")) {
Serial.println("-->[SLIB] CM1106 setting calibration to: " + String(ppmValue));
cm1106->start_calibration(ppmValue);
}
Expand Down

0 comments on commit 083dd78

Please sign in to comment.