From 015bd43c25becf46897efa0a274730929c74ab51 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 10 Sep 2018 20:29:20 +0200 Subject: DLF import: Set initial gas as first cylinder Signed-off-by: Anton Lundin --- core/parse-xml.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/parse-xml.c b/core/parse-xml.c index 8cb795545..70407706d 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -1731,6 +1731,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size, struct dive_table *tabl cur_dc->maxdepth.mm = ((ptr[21] << 8) + ptr[20]) * 10; cur_dc->surface_pressure.mbar = ((ptr[25] << 8) + ptr[24]) / 10; + // Declare initial mix as first cylinder + cur_dive->cylinder[0].gasmix.o2.permille = ptr[26] * 10; + cur_dive->cylinder[0].gasmix.he.permille = ptr[27] * 10; + /* Done with parsing what we know about the dive header */ ptr += 32; -- cgit v1.2.3-70-g09d2