Stop filtering out events with beginning or end flags

This made sense briefly when libdivecomputer reported ceiling data through
events with those flags, but it actually made us hide valid events from
some divecomputers that give us only very limited information (e.g., deco
events from some Suunto divecomputers).

Reported-by: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>
Analyzed-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-01-28 22:00:19 -08:00
parent 974ac84cbe
commit da62919ae1

View file

@ -419,8 +419,7 @@ static void plot_events(struct graphics_context *gc, struct plot_info *pi, struc
return;
while (event) {
if (event->flags != SAMPLE_FLAGS_BEGIN && event->flags != SAMPLE_FLAGS_END)
plot_one_event(gc, pi, event, &tro);
plot_one_event(gc, pi, event, &tro);
event = event->next;
}
}