summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-28 22:00:19 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-01-28 22:00:19 -0800
commitda62919ae143d2b9dcaa9b1bc093a8c48ff647f7 (patch)
treed88ebce62ee9b299f8dcbe4035e08a2c100275a9 /profile.c
parent974ac84cbe47a8a4f238df18a5fca5835b1732f3 (diff)
downloadsubsurface-da62919ae143d2b9dcaa9b1bc093a8c48ff647f7.tar.gz
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>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index 21fa59857..7ac2ac040 100644
--- a/profile.c
+++ b/profile.c
@@ -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;
}
}