From 90a19dd154b38521a99259a50b7ce7199533941a Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Sun, 14 Jun 2015 18:56:16 -1000 Subject: [PATCH] EON Steel: don't report airtime remaining as a libdivecomputer event It looks like the SAMPLE_EVENT_AIRTIME is actually meant for just airtime warnings (as in the dive computer warning about low air). If we ever care, I think we'd need to add a new interface for this. Signed-off-by: Linus Torvalds Signed-off-by: Dirk Hohndel --- src/suunto_eonsteel_parser.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/suunto_eonsteel_parser.c b/src/suunto_eonsteel_parser.c index 156bf28..10577b2 100644 --- a/src/suunto_eonsteel_parser.c +++ b/src/suunto_eonsteel_parser.c @@ -512,9 +512,7 @@ static void sample_gastime(struct sample_data *info, short gastime) if (gastime < 0) return; - sample.event.type = SAMPLE_EVENT_AIRTIME; - sample.event.value = gastime; - if (info->callback) info->callback(DC_SAMPLE_EVENT, sample, info->userdata); + // Hmm. We have no good way to report airtime remaining } /*