aboutsummaryrefslogtreecommitdiffstats
path: root/core/liquivision.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2017-07-28 21:33:41 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-28 21:50:30 -0700
commit5be6fd2f8e957a3c668104b5ea8abdae6db3342b (patch)
treea418c22991bbbbd8d11c6aa43cf819e5a2fadabb /core/liquivision.c
parent92b1c318bda8a3a5fb552592af82bf95d9d0bf7b (diff)
downloadsubsurface-5be6fd2f8e957a3c668104b5ea8abdae6db3342b.tar.gz
Import all pressure sensors from Liquivision logs
The other pressure sensors were disabled on import because we didn't use to handle multiple sensors well at all. Now it "JustWorks(tm)". Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/liquivision.c')
-rw-r--r--core/liquivision.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/liquivision.c b/core/liquivision.c
index dae9ae81b..8ed358a0f 100644
--- a/core/liquivision.c
+++ b/core/liquivision.c
@@ -310,8 +310,7 @@ static void parse_dives (int log_version, const unsigned char *buf, unsigned int
if (log_version == 3) {
ps_ptr += handle_event_ver3(event_code, ps, ps_ptr, &event);
- // Ignoring the buddy sensor for now as we cannot draw it on the profile.
- if ((event_code != 0xf) || (event.pressure.sensor != 0))
+ if (event_code != 0xf)
continue; // ignore all but pressure sensor event
} else { // version 2
ps_ptr += handle_event_ver2(event_code, ps, ps_ptr, &event);