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 <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Linus Torvalds 2015-06-14 18:56:16 -10:00 committed by Jef Driesen
parent a16f8ec470
commit 90a19dd154

View File

@ -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
}
/*