summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Miika Turkia <miika.turkia@gmail.com>2015-02-20 20:35:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-22 07:46:14 -0800
commita76d5fb9662e1723bad712349bb715c392459f34 (patch)
treea444f6cff08897461cd436adb9b017893514433c /parse-xml.c
parentfc0d2a3fdbb187ee75cebacc98fd8f92213bbe87 (diff)
downloadsubsurface-a76d5fb9662e1723bad712349bb715c392459f34.tar.gz
Fix surface pressure on DM5 import
Seems that DM5 uses pascal as pressure unit for surface pressure. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c2
1 files changed, 1 insertions, 1 deletions
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];