Commit efbeed2b authored by Melroy van den Berg's avatar Melroy van den Berg

to mg

parent ac96d534
Pipeline #1062 passed with stages
in 13 seconds
......@@ -161,8 +161,7 @@ bool DoTempMeasurement(int i2c_fd) {
printf("%.2f °C\n", data.temperature);
printf("%.2f %%\n", data.humidity);
printf("%.2f hPa\n", data.pressure);
printf("%.2f meters\n", WeatherEnvironment::GetApproximateAltitude(data.pressure));
printf("%.2f humidity (g/m3)\n\n", WeatherEnvironment::GetAbsoluteHumidity(data.temperature, data.humidity));
printf("%.2f humidity (mg/m3)\n\n", WeatherEnvironment::GetAbsoluteHumidity(data.temperature, data.humidity) * 1000.0);
counter++;
}
......
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