From 63d98138b41fe373960b58ecb45c239392d43c57 Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Tue, 5 Aug 2014 12:58:23 +0200 Subject: Bail out of deco calculation after 48h or dive time With very low values of GFhigh and setting the last stop depth to 6m it is possible to create dives that need infintie decompression time. This ends deco after 48h and replaces the dive plan with an error message. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- dive.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dive.h') diff --git a/dive.h b/dive.h index a1abab657..3ca305ff0 100644 --- a/dive.h +++ b/dive.h @@ -711,7 +711,7 @@ struct divedatapoint *create_dp(int time_incr, int depth, struct gasmix gasmix, #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan); #endif -void plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer); +int plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool show_disclaimer); void delete_single_dive(int idx); struct event *get_next_event(struct event *event, char *name); -- cgit v1.2.3-70-g09d2