NUC-30: Round VOC to two digits

This commit is contained in:
Denis-Cosmin Nutiu 2020-02-09 16:37:45 +02:00
parent 3f8edbe608
commit 81dda269a8

View file

@ -130,7 +130,7 @@ namespace NucuCar.Sensors.Environment
_lastMeasurement.Temperature = temp.Celsius;
_lastMeasurement.Pressure = pressure.Hectopascal;
_lastMeasurement.Humidity = humidity;
_lastMeasurement.VolatileOrganicCompounds = gasResistance;
_lastMeasurement.VolatileOrganicCompounds = Math.Round(gasResistance / 1000, 2);
Logger?.LogDebug($"{DateTimeOffset.Now}:BME680: reading");
Logger?.LogInformation(