Commit 42508dd0 authored by Eric Duminil's avatar Eric Duminil
Browse files

Removing mentions of temperature/humidity

parent d6abdb54
Pipeline #6583 failed with stage
in 2 minutes and 16 seconds
......@@ -169,8 +169,7 @@ namespace sensor {
void logToSerial() {
Serial.print(timestamp);
Serial.print(F(" - co2(ppm): "));
Serial.print(co2);
Serial.println(F(" temp(C): ? humidity(%): ?"));
Serial.println(co2);
}
void switchState(state new_state) {
......
......@@ -130,8 +130,8 @@ namespace csv_writer {
csv_file = FS_LIB.open(filename, "a+");
} else {
csv_file = FS_LIB.open(filename, "w");
csv_file.print(F("Sensor time;CO2 concentration;Temperature;Humidity\r\n"));
csv_file.print(F("YYYY-MM-DD HH:MM:SS+ZZ;ppm;degC;%\r\n"));
csv_file.print(F("Sensor time;CO2 concentration\r\n"));
csv_file.print(F("YYYY-MM-DD HH:MM:SS+ZZ;ppm\r\n"));
}
return csv_file;
}
......@@ -140,7 +140,7 @@ namespace csv_writer {
led_effects::onBoardLEDOn();
File csv_file = openOrCreate();
char csv_line[42];
snprintf(csv_line, sizeof(csv_line), "%s;%d;%.1f;%.1f\r\n", timestamp, co2, temperature, humidity);
snprintf(csv_line, sizeof(csv_line), "%s;%d\r\n", timestamp, co2);
if (csv_file) {
size_t written_bytes = csv_file.print(csv_line);
csv_file.close();
......
Markdown is supported
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