[PATCH 2/5] DLF import: parse and import surfacepressure

Anton Lundin glance at acc.umu.se
Fri Jan 23 15:29:34 PST 2015


Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 parse-xml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/parse-xml.c b/parse-xml.c
index 9113aae..e48f750 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;
-- 
2.1.0



More information about the subsurface mailing list