From a76d5fb9662e1723bad712349bb715c392459f34 Mon Sep 17 00:00:00 2001 From: Miika Turkia Date: Fri, 20 Feb 2015 20:35:44 +0200 Subject: Fix surface pressure on DM5 import Seems that DM5 uses pascal as pressure unit for surface pressure. Signed-off-by: Miika Turkia Signed-off-by: Dirk Hohndel --- parse-xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse-xml.c') diff --git a/parse-xml.c b/parse-xml.c index 8826f2fe3..285c681fc 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2281,7 +2281,7 @@ extern int dm5_dive(void *param, int columns, char **data, char **column) } if (data[14]) - cur_dive->dc.surface_pressure.mbar = (atoi(data[14]) * 1000); + cur_dive->dc.surface_pressure.mbar = (atoi(data[14]) / 100); interval = data[16] ? atoi(data[16]) : 0; sampleBlob = (unsigned const char *)data[24]; -- cgit v1.2.3-70-g09d2