mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Identify below floor event type properly.
This event is on when accumulating deco time. Once you reach the floor deco time will start decreasing and the event will stop. Going below the floor again will re-activate the event. Also identify event type 13 in DM4 imports as airtime. Signed-off-by: Michael Andreen <harv@ruin.nu> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
583cea0e2c
commit
169d9e9c01
2 changed files with 9 additions and 1 deletions
|
@ -153,7 +153,7 @@ static void handle_event(struct divecomputer *dc, struct sample *sample, dc_samp
|
|||
N_("none"), N_("deco stop"), N_("rbt"), N_("ascent"), N_("ceiling"), N_("workload"),
|
||||
N_("transmitter"), N_("violation"), N_("bookmark"), N_("surface"), N_("safety stop"),
|
||||
N_("gaschange"), N_("safety stop (voluntary)"), N_("safety stop (mandatory)"),
|
||||
N_("deepstop"), N_("ceiling (safety stop)"), N_("unknown"), N_("divetime"),
|
||||
N_("deepstop"), N_("ceiling (safety stop)"), N_("below floor"), N_("divetime"),
|
||||
N_("maxdepth"), N_("OLF"), N_("PO2"), N_("airtime"), N_("rgbm"), N_("heading"),
|
||||
N_("tissue level warning"), N_("gaschange"), N_("non stop time")
|
||||
};
|
||||
|
|
|
@ -1635,6 +1635,10 @@ extern int dm4_events(void *handle, int columns, char **data, char **column)
|
|||
/* 6 Mandatory safety stop ceiling error */
|
||||
cur_event.name = strdup("violation");
|
||||
break;
|
||||
case 7:
|
||||
/* 7 Below deco floor */
|
||||
cur_event.name = strdup("below floor");
|
||||
break;
|
||||
case 8:
|
||||
/* 8 Dive time alarm */
|
||||
cur_event.name = strdup("divetime");
|
||||
|
@ -1653,6 +1657,10 @@ extern int dm4_events(void *handle, int columns, char **data, char **column)
|
|||
/* 12 High ppO2 */
|
||||
cur_event.name = strdup("PO2");
|
||||
break;
|
||||
case 13:
|
||||
/* 13 Air time */
|
||||
cur_event.name = strdup("airtime");
|
||||
break;
|
||||
case 18:
|
||||
/* 18 Ceiling error */
|
||||
cur_event.name = strdup("ceiling");
|
||||
|
|
Loading…
Add table
Reference in a new issue