Skip to content

Commit

Permalink
Merge pull request #110 from melkati/master
Browse files Browse the repository at this point in the history
Don't multiply the measurement interval by 2 for SCD30
  • Loading branch information
hpsaturn authored Dec 13, 2021
2 parents 6e5014d + 0cee49a commit c7e78fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Sensors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ void Sensors::setSampleTime(int seconds) {
sample_time = seconds;
Serial.println("-->[SLIB] new sample time: " + String(seconds));
if(getMainDeviceSelected().equals("SCD30")){
scd30.setMeasurementInterval(seconds * 2);
Serial.println("-->[SLIB] SCD30 interval time to (2x): " + String(seconds * 2));
scd30.setMeasurementInterval(seconds);
Serial.println("-->[SLIB] SCD30 interval time to: " + String(seconds));
}
}

Expand Down

0 comments on commit c7e78fb

Please sign in to comment.