summaryrefslogtreecommitdiffstats
path: root/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2015-01-24 00:29:34 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-24 12:33:32 +1200
commitf0e68137d770ad5547deea246faeef99dc589adf (patch)
tree13a24d6b200ba7dbaff47ff4b0e5911debc22435 /parse-xml.c
parentbc3b56a9690e3171aeae6105827bfc001f6b1743 (diff)
downloadsubsurface-f0e68137d770ad5547deea246faeef99dc589adf.tar.gz
DLF import: parse and import surfacepressure
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'parse-xml.c')
-rw-r--r--parse-xml.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse-xml.c b/parse-xml.c
index 9113aae06..e48f75016 100644
--- a/parse-xml.c
+++ b/parse-xml.c
@@ -2598,6 +2598,7 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
}
cur_dc->maxdepth.mm = ((ptr[21] << 8) + ptr[20]) * 10;
+ cur_dc->surface_pressure.mbar = ((ptr[25] << 8) + ptr[24]) / 10;
/* Done with parsing what we know about the dive header */
ptr += 32;