Added a configuration option to have gf_low apply at max depth instead of at deepest ceiling.

Signed-off-by: Patrick Valsecchi <patrick@thus.ch>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Patrick Valsecchi 2013-11-20 16:11:22 +01:00 committed by Dirk Hohndel
parent 4c4a7a6d96
commit fe2eabf375
9 changed files with 34 additions and 21 deletions

View file

@ -574,7 +574,7 @@ void plan(struct diveplan *diveplan, char **cached_datap, struct dive **divep, b
int gaschangenr;
unsigned int *stoplevels = NULL;
set_gf(diveplan->gflow, diveplan->gfhigh);
set_gf(diveplan->gflow, diveplan->gfhigh, default_prefs.gf_low_at_maxdepth);
if (!diveplan->surface_pressure)
diveplan->surface_pressure = SURFACE_PRESSURE;
if (*divep)