Skip to content

Commit

Permalink
improved debug mode output message for CO2 offsets
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Jul 16, 2023
1 parent acdccaa commit 63d1061
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 @@ -1613,9 +1613,9 @@ void Sensors::CO2correctionAlt() {
}

float Sensors::hpaCalculation(float altitude) {
DEBUG("-->[SLIB] Altitude Compensation for CO2 lectures ON\t:", String(altitude).c_str());
DEBUG("-->[SLIB] CO2 altitude offset\t:", String(altitude).c_str());
float hpa = 1012 - 0.118 * altitude + 0.00000473 * altitude * altitude; // Cuadratic regresion formula obtained PA (hpa) from high above the sea
DEBUG("-->[SLIB] Atmospheric pressure calculated in hPa\t:", String(hpa).c_str());
DEBUG("-->[SLIB] CO2 pressure (hPa)\t:", String(hpa).c_str());
return hpa;
}

Expand Down Expand Up @@ -1667,7 +1667,7 @@ void Sensors::geigerRead(){
void Sensors::enableGeigerSensor(int gpio){
sensorAnnounce(SENSORS::SCAJOE);
if (gpio < 0) {
if (devmode) Serial.printf("[W][SLIB] undefined Geiger pin\t: %i\r\t", gpio);
if (devmode) Serial.printf("[W][SLIB] undefined Geiger pin\t: %i\r\n", gpio);
return;
}
rad = new GEIGER(gpio,devmode);
Expand Down

0 comments on commit 63d1061

Please sign in to comment.