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 <rickmwalsh@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Rick Walsh 2015-07-26 13:34:42 +10:00 committed by Dirk Hohndel
parent 3d5232a622
commit 036e992d14

View file

@ -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];