From 5be6fd2f8e957a3c668104b5ea8abdae6db3342b Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 28 Jul 2017 21:33:41 -0700 Subject: 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 Signed-off-by: Dirk Hohndel --- core/liquivision.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core') 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); -- cgit v1.2.3-70-g09d2