mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
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:
parent
974ac84cbe
commit
da62919ae1
1 changed files with 1 additions and 2 deletions
|
@ -419,8 +419,7 @@ static void plot_events(struct graphics_context *gc, struct plot_info *pi, struc
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while (event) {
|
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;
|
event = event->next;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue