summaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2014-11-20 21:08:13 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-11-20 14:32:27 -0800
commite883819061ea991bf2b9591412949b2c47965d91 (patch)
treec414b11f08a35494054451c5af00e99951180215 /file.c
parent72c47a856edea0ab4b7900ad2db4b0702d3afdf2 (diff)
downloadsubsurface-e883819061ea991bf2b9591412949b2c47965d91.tar.gz
De-obfuscated Poseidon gaschange event building
After some feedback on the mailing list, bitwise XOR wasn't the preferred way to build the gaschange event. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/file.c b/file.c
index 4b4bf14a5..07774b10e 100644
--- a/file.c
+++ b/file.c
@@ -704,11 +704,11 @@ int parse_txt_file(const char *filename, const char *csv)
break;
case 85:
//He diluent part in %
- gaschange ^= value << 16;
+ gaschange += value << 16;
break;
case 86:
//O2 diluent part in %
- gaschange ^= value;
+ gaschange += value;
break;
//239 Unknown, maybe PO2 at sensor validation?
//240 Unknown, maybe PO2 at sensor validation?