diff options
author | Miika Turkia <miika.turkia@gmail.com> | 2017-06-13 16:25:14 +0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-06-13 18:11:22 +0900 |
commit | ec40a25007ad0c5a202ceab9194b84c7a34928ca (patch) | |
tree | 5dab5466dca0f72ab5548720020ec5c1ead593da | |
parent | fb2638b3fb38ac200678d6c15b440d0bc4a99a22 (diff) | |
download | subsurface-ec40a25007ad0c5a202ceab9194b84c7a34928ca.tar.gz |
Parse He when importing from DM5
Signed-off-by: Miika Turkia <miika.turkia@gmail.com>
-rw-r--r-- | core/parse-xml.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c index 129914e3c..e5556d53f 100644 --- a/core/parse-xml.c +++ b/core/parse-xml.c @@ -2248,6 +2248,10 @@ extern int dm5_gaschange(void *handle, int columns, char **data, char **column) strcpy(cur_event.name, "gaschange"); cur_event.value = lrint(atof(data[1])); } + + /* He part of the mix */ + if (data[2]) + cur_event.value += lrint(atof(data[2])) << 16; event_end(); return 0; |