From 178eaa9a67f73195aac0ad195a428e899973a2df Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Mon, 25 Mar 2019 22:40:59 +0100 Subject: Add UI element for final surface segment in planner Signed-off-by: Robert C. Helling --- core/planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/planner.c') diff --git a/core/planner.c b/core/planner.c index 0177b9691..ff483a0ac 100644 --- a/core/planner.c +++ b/core/planner.c @@ -1087,7 +1087,7 @@ bool plan(struct deco_state *ds, struct diveplan *diveplan, struct dive *dive, i current_cylinder = i; break; } - plan_add_segment(diveplan, 600, 0, current_cylinder, 0, false, OC); + plan_add_segment(diveplan, prefs.surface_segment, 0, current_cylinder, 0, false, OC); create_dive_from_plan(diveplan, dive, is_planner); add_plan_to_notes(diveplan, dive, show_disclaimer, error); fixup_dc_duration(&dive->dc); -- cgit v1.2.3-70-g09d2