From 036e992d14420c3db75d050b39d0d113b35b9aec Mon Sep 17 00:00:00 2001 From: Rick Walsh Date: Sun, 26 Jul 2015 13:34:42 +1000 Subject: [PATCH] Planner: Change 3m stop to zero if last stop is 6m When the last stop at 6m/20ft option is selected, replace the 3m/10ft stop with zero depth, rather than doubling up on the 6m/20ft stop. This removes the need to differentiate between 6m (=6000mm) and 20ft (=6096mm) and saves calling a helper function. It does not alter the calculated profile at all. Signed-off-by: Rick Walsh Signed-off-by: Dirk Hohndel --- planner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planner.c b/planner.c index 216d79138..550d46362 100644 --- a/planner.c +++ b/planner.c @@ -912,7 +912,7 @@ bool plan(struct diveplan *diveplan, char **cached_datap, bool is_planner, bool } if (prefs.last_stop) - decostoplevels[1] = M_OR_FT(6,20); + decostoplevels[1] = 0; /* Let's start at the last 'sample', i.e. the last manually entered waypoint. */ sample = &displayed_dive.dc.sample[displayed_dive.dc.samples - 1];