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>
This commit is contained in:
Linus Torvalds 2017-07-28 21:33:41 -07:00 committed by Dirk Hohndel
parent 92b1c318bd
commit 5be6fd2f8e

View file

@ -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);