diff options
author | Anton Lundin <glance@acc.umu.se> | 2014-12-29 23:43:31 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-12-29 16:21:33 -0800 |
commit | eda123462193a3c6be56ba88cdd6fb080d83370c (patch) | |
tree | cad0eff61167a0ebd99ee931767f8b046e058fe9 /parse-xml.c | |
parent | ab208c8fefa278ab1a27770a8635ffde59ab5a24 (diff) | |
download | subsurface-eda123462193a3c6be56ba88cdd6fb080d83370c.tar.gz |
Use GASCHANGE2 constant for DLF GASCHANGE
And this encodes helium part to in the gaschange.
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/parse-xml.c b/parse-xml.c index f0e6bc1b0..65dc80910 100644 --- a/parse-xml.c +++ b/parse-xml.c @@ -2600,8 +2600,8 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size) switch (ptr[4]) { case 5: strcpy(cur_event.name, "gaschange"); - cur_event.type = 25; - cur_event.value = ptr[6]; + cur_event.type = SAMPLE_EVENT_GASCHANGE2; + cur_event.value = ptr[7] << 8 ^ ptr[6]; found = false; for (i = 0; i < cur_cylinder_index; ++i) { |