From 8f6f9cd39d4485a2c4aa71eeb71d9ab9bc1c1fa2 Mon Sep 17 00:00:00 2001 From: Anton Lundin Date: Mon, 7 Aug 2017 20:41:43 +0200 Subject: DLF: Parse diluent changes as a gaschange event Signed-off-by: Anton Lundin --- core/parse-xml.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core') 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"); -- cgit v1.2.3-70-g09d2