Commit 86309b4a authored by Eric Duminil's avatar Eric Duminil
Browse files

Show only 1 decimal for temperature & humidity

parent ee78e9f0
...@@ -120,9 +120,9 @@ namespace sensor { ...@@ -120,9 +120,9 @@ namespace sensor {
Serial.print(F("co2(ppm): ")); Serial.print(F("co2(ppm): "));
Serial.print(co2); Serial.print(co2);
Serial.print(F(" temp(C): ")); Serial.print(F(" temp(C): "));
Serial.print(temperature); Serial.print(temperature, 1);
Serial.print(F(" humidity(%): ")); Serial.print(F(" humidity(%): "));
Serial.println(humidity); Serial.println(humidity, 1);
} }
void displayCO2OnLedRing() { void displayCO2OnLedRing() {
...@@ -145,7 +145,7 @@ namespace sensor { ...@@ -145,7 +145,7 @@ namespace sensor {
} }
/** Gets fresh data if available, checks calibration status, displays CO2 levels. /** Gets fresh data if available, checks calibration status, displays CO2 levels.
* Returns true if fresh data is available, for further processing (MQTT) * Returns true if fresh data is available, for further processing (e.g. MQTT, CSV or LoRa)
*/ */
bool processData() { bool processData() {
bool freshData = scd30.dataAvailable(); bool freshData = scd30.dataAvailable();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment