Missing events?

Linus Torvalds torvalds at linux-foundation.org
Mon Jan 28 11:40:34 PST 2013


On Sun, Jan 27, 2013 at 11:03 PM, Henrik Brautaset Aronsen
<subsurface at henrik.synth.no> wrote:
> I just realized that I don't see events in the dive profiles of my imported
> Suunto HelO2 dives.  In the same dives in MacDive, I see events such as "PO2
> warning", "Ascent warning", "Deepstop" and "Tissue warning".
>
> Is this intentional? They should be displayed IMHO.

Grr. Dirk, this is your

    if (event->flags != SAMPLE_FLAGS_BEGIN && event->flags != SAMPLE_FLAGS_END)

check in plot_events(). It's from commit 6ad73a8f043b ("Improve logic
handling events"), where the commit comment is

    Finally, for events that define a range (so they set the beginning flag
    and assume and end flag some time later) we no loger show the triangle but
    assume that some other code handles visualizing them (as happens for the
    ceiling events).

but the fact is, that never happened. So now all the start/end events
that suunto sends (deco, deep stops, PO2 warnings etc) get filtered
out.

Henrik, you can just remove or comment out the line I quoted above,
and it should work the way you want. We'll have to figure out how to
show ranges properly.

                Linus


More information about the subsurface mailing list