summaryrefslogtreecommitdiffstats
path: root/planner.c
diff options
context:
space:
mode:
authorGravatar Patrick Valsecchi <patrick@thus.ch>2013-11-20 16:11:22 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-21 08:11:40 -0800
commitfe2eabf3756c9883ee8e8c145e5cd12d8d336933 (patch)
tree2cde71531d087a96fa91ba1dc47d07f42ae98faa /planner.c
parent4c4a7a6d968fa27de72f1510c55d327a7e919d7c (diff)
downloadsubsurface-fe2eabf3756c9883ee8e8c145e5cd12d8d336933.tar.gz
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>
Diffstat (limited to 'planner.c')
-rw-r--r--planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/planner.c b/planner.c
index cdc13a599..e1f8ba244 100644
--- a/planner.c
+++ b/planner.c
@@ -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)