From 3fd39a7a87bf438f012167303a564deac72d267a Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Tue, 26 Nov 2013 23:11:30 +0100 Subject: Remove some constants and use helpers instead We have allot of helpers, use them instead of local variants. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- libdivecomputer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libdivecomputer.c') diff --git a/libdivecomputer.c b/libdivecomputer.c index bc2aea6d0..3f118cf04 100644 --- a/libdivecomputer.c +++ b/libdivecomputer.c @@ -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); -- cgit v1.2.3-70-g09d2