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:
parent
a16f8ec470
commit
90a19dd154
@ -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
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user