From e07531dd10a9126544b4cb949b05ee2d15a50d5d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sat, 10 Nov 2012 11:36:59 +0100 Subject: [PATCH] Convert Uemis deco stop hold time to seconds This is actually stored in minutes (which seems odd, given they allocate 16 bits for it... how much deco do these people want to be prepared for??) Signed-off-by: Dirk Hohndel --- uemis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uemis.c b/uemis.c index c12b53c8e..72d20e360 100644 --- a/uemis.c +++ b/uemis.c @@ -186,7 +186,7 @@ void uemis_event(struct dive *dive, struct sample *sample, uemis_sample_t *u_sam add_event(dive, sample->time.seconds, SAMPLE_EVENT_CEILING, SAMPLE_FLAGS_BEGIN, u_sample->hold_depth * 10, N_("ceiling")); add_event(dive, sample->time.seconds, SAMPLE_EVENT_DECOSTOP, 0, - u_sample->hold_time, N_("deco")); + u_sample->hold_time * 60, N_("deco")); in_deco = TRUE; } else if (in_deco) { in_deco = FALSE;