From da42b0b79ddc76e11742c47f36e6fb7310f7b773 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Tue, 30 Dec 2014 17:05:51 +0100 Subject: Record the cylinder idx on DLF gaschange Use the new and fancy cylinder idx to record which cylinder we change to on the DLF import. Signed-off-by: Anton Lundin Signed-off-by: Dirk Hohndel --- parse-xml.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'parse-xml.c') diff --git a/parse-xml.c b/parse-xml.c index 115e2a283..33b4c3ee2 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2653,6 +2653,9 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) cur_dive->cylinder[cur_cylinder_index].gasmix.o2.permille = ptr[6] * 10; cur_dive->cylinder[cur_cylinder_index].gasmix.he.permille = ptr[7] * 10; cylinder_end(); + cur_event.gas.index = cur_cylinder_index; + } else { + cur_event.gas.index = i; } break; case 6: -- cgit v1.2.3-70-g09d2