diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-07-28 21:33:41 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-28 21:50:30 -0700 |
commit | 5be6fd2f8e957a3c668104b5ea8abdae6db3342b (patch) | |
tree | a418c22991bbbbd8d11c6aa43cf819e5a2fadabb /core | |
parent | 92b1c318bda8a3a5fb552592af82bf95d9d0bf7b (diff) | |
download | subsurface-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')
-rw-r--r-- | core/liquivision.c | 3 |
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); |