[PATCH 2/4] Use GASCHANGE2 constant for DLF GASCHANGE

Anton Lundin glance at acc.umu.se
Mon Dec 29 14:43:31 PST 2014


And this encodes helium part to in the gaschange.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 parse-xml.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/parse-xml.c b/parse-xml.c
index f0e6bc1..65dc809 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) {
-- 
2.1.0



More information about the subsurface mailing list