mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Remove some constants and use helpers instead
We have allot of helpers, use them instead of local variants. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c94101dd4f
commit
3fd39a7a87
4 changed files with 12 additions and 12 deletions
|
|
@ -203,7 +203,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 * 1000 + ZERO_C_IN_MKELVIN + 0.5;
|
||||
sample->temperature.mkelvin = C_to_mkelvin(value.temperature);
|
||||
break;
|
||||
case DC_SAMPLE_EVENT:
|
||||
handle_event(dc, sample, value);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue