summaryrefslogtreecommitdiffstats
path: root/core/planner.c
diff options
context:
space:
mode:
authorGravatar Stefan Fuchs <sfuchs@gmx.de>2017-11-02 21:00:54 +0100
committerGravatar Robert C. Helling <helling@atdotde.de>2017-11-04 14:51:02 +0100
commitac25b238dd5b381d9970e0d26ebef9fc13fc075d (patch)
treedba500b869a5801b6e01dc639d3f17e38a785f9d /core/planner.c
parent3ae0b5cbdddd4edf63a9374bdfda8c6444f549e7 (diff)
downloadsubsurface-ac25b238dd5b381d9970e0d26ebef9fc13fc075d.tar.gz
Disable o2 break option if last stop is not at 6m/20ft
Disable the possibility to plan o2 breaks of option "last stop at 6m/20ft" is not set. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
Diffstat (limited to 'core/planner.c')
-rw-r--r--core/planner.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/planner.c b/core/planner.c
index 5b424bac0..ba7ea8eb0 100644
--- a/core/planner.c
+++ b/core/planner.c
@@ -1000,7 +1000,7 @@ bool plan(struct diveplan *diveplan, struct dive *dive, int timestep, struct dec
o2breaking = false;
stop_cylinder = current_cylinder;
- if (prefs.doo2breaks) {
+ if (prefs.doo2breaks && prefs.last_stop) {
/* The backgas breaks option limits time on oxygen to 12 minutes, followed by 6 minutes on
* backgas. This could be customized if there were demand.
*/