summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2017-08-07 20:41:43 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-10 09:09:53 -0700
commit8f6f9cd39d4485a2c4aa71eeb71d9ab9bc1c1fa2 (patch)
tree049a1d7839dc5e32da7e8d0145f88052c46ba591 /core/parse-xml.c
parentf0303802dde0f5e18018f71253b0aa363dbb3402 (diff)
downloadsubsurface-8f6f9cd39d4485a2c4aa71eeb71d9ab9bc1c1fa2.tar.gz
DLF: Parse diluent changes as a gaschange event
Signed-off-by: Anton Lundin <glance@acc.umu.se>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 9ba9b24ac..86de629aa 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -3710,7 +3710,10 @@ int parse_dlf_buffer(unsigned char *buffer, size_t size)
strcpy(cur_event.name, "Fatal");
break;
case 23:
- strcpy(cur_event.name, "Diluent");
+ strcpy(cur_event.name, "gaschange");
+ cur_event.type = SAMPLE_EVENT_GASCHANGE2;
+ cur_event.value = ptr[7] << 8 ^ ptr[6];
+ event_end();
break;
case 24:
strcpy(cur_event.name, "gaschange");