mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Centralization for Kelvin and Standardization to milliKelvin
This centralizes all occurrences of Kelvin to dive.h and standardizes all usages to milliKelvin. [Dirk Hohndel: renamed the constant plus minor white space cleanup] Signed-off-by: Jan Schubert <Jan.Schubert@GMX.li> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
67d8891af5
commit
50d0391dfb
5 changed files with 15 additions and 14 deletions
|
@ -214,7 +214,7 @@ sample_cb(dc_sample_type_t type, dc_sample_value_t value, void *userdata)
|
|||
sample->cylinderpressure.mbar = value.pressure.value * 1000 + 0.5;
|
||||
break;
|
||||
case DC_SAMPLE_TEMPERATURE:
|
||||
sample->temperature.mkelvin = (value.temperature + 273.15) * 1000 + 0.5;
|
||||
sample->temperature.mkelvin = value.temperature * 1000 + ZERO_C_IN_MKELVIN + 0.5;
|
||||
break;
|
||||
case DC_SAMPLE_EVENT:
|
||||
handle_event(dc, sample, value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue