From 56535e4b3b9c2324f42674f385ee7bda2b9028eb Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 18 Sep 2013 22:40:34 -0500 Subject: Only calculate deco stops in planner mode In add dive mode simply bring the diver safely back to the surface (currently with a fixed ascent rate of 30ft/min (or 9m/min)). We should make that rate configurable (for the planner as well as the dive add function). Also, the dive add function should offer to automatically include a safety stop. Signed-off-by: Dirk Hohndel --- planner.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planner.h') diff --git a/planner.h b/planner.h index d97a21fa7..fbff88ad8 100644 --- a/planner.h +++ b/planner.h @@ -6,7 +6,7 @@ extern "C" { #endif -extern void plan(struct diveplan *diveplan, char **cache_datap, struct dive **divep, char **error_string_p); +extern void plan(struct diveplan *diveplan, char **cache_datap, struct dive **divep, bool add_plan, char **error_string_p); extern int validate_gas(const char *text, int *o2_p, int *he_p); extern int validate_time(const char *text, int *sec_p, int *rel_p); extern int validate_depth(const char *text, int *mm_p); -- cgit v1.2.3-70-g09d2