From 69de9d8f988aecc59b53c5bf1a1ec55d6529c59e Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Wed, 28 Mar 2018 22:50:28 +0200 Subject: Add planner infra structure for bailout Add a divemode column to the planner model and a corresponding field to struct divepoint and fill it in the corresponding functions. Signed-off-by: Robert C. Helling --- core/dive.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/dive.h') diff --git a/core/dive.h b/core/dive.h index 75f042790..54935226d 100644 --- a/core/dive.h +++ b/core/dive.h @@ -874,6 +874,7 @@ struct divedatapoint { int setpoint; bool entered; struct divedatapoint *next; + enum dive_comp_type divemode; }; struct diveplan { @@ -890,7 +891,7 @@ struct diveplan { int surface_interval; }; -struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration, int depth, int cylinderid, int po2, bool entered); +struct divedatapoint *plan_add_segment(struct diveplan *diveplan, int duration, int depth, int cylinderid, int po2, bool entered, enum dive_comp_type divemode); struct divedatapoint *create_dp(int time_incr, int depth, int cylinderid, int po2); #if DEBUG_PLAN void dump_plan(struct diveplan *diveplan); -- cgit v1.2.3-70-g09d2