diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-30 17:05:51 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-30 08:29:00 -0800 |
commit | da42b0b79ddc76e11742c47f36e6fb7310f7b773 (patch) | |
tree | f6524942f670f25f17bfbb4f16395e9597a91fbc | |
parent | 4da7ab24312a167079fc0b3e93f8c5257b3099f7 (diff) | |
download | subsurface-da42b0b79ddc76e11742c47f36e6fb7310f7b773.tar.gz |
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 <glance@acc.umu.se>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | parse-xml.c | 3 |
1 files changed, 3 insertions, 0 deletions
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: |