mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3ae0b5cbdd
commit
ac25b238dd
3 changed files with 19 additions and 1 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue