diff options
author | Robert C. Helling <helling@atdotde.de> | 2019-10-29 17:57:34 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-10-31 00:30:38 -0700 |
commit | 9c8fbe494db231b59c2e072b54af85bc217c00d8 (patch) | |
tree | 2b387fea841a6a154135c8b268f3e40298ddbea5 /core/settings/qPrefDivePlanner.cpp | |
parent | 43b16f0810f7aa8328fd946e0e014d0625e3b53b (diff) | |
download | subsurface-9c8fbe494db231b59c2e072b54af85bc217c00d8.tar.gz |
Planner: Add option to treat O2 as narcotic
When computing the best mix for a target depth, for helium, one
can either require that the partial pressure of N2 is the same
as at the target depth or the partial pressure of N2 plus O2.
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Diffstat (limited to 'core/settings/qPrefDivePlanner.cpp')
-rw-r--r-- | core/settings/qPrefDivePlanner.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/settings/qPrefDivePlanner.cpp b/core/settings/qPrefDivePlanner.cpp index f33b390cf..e094bfed0 100644 --- a/core/settings/qPrefDivePlanner.cpp +++ b/core/settings/qPrefDivePlanner.cpp @@ -35,6 +35,7 @@ void qPrefDivePlanner::loadSync(bool doSync) disk_display_variations(doSync); disk_doo2breaks(doSync); disk_dobailout(doSync); + disk_o2narcotic(doSync); disk_drop_stone_mode(doSync); disk_last_stop(doSync); disk_min_switch_duration(doSync); @@ -76,6 +77,7 @@ HANDLE_PREFERENCE_BOOL(DivePlanner, "display_variations", display_variations); HANDLE_PREFERENCE_BOOL(DivePlanner, "doo2breaks", doo2breaks); HANDLE_PREFERENCE_BOOL(DivePlanner, "dobailbout", dobailout); +HANDLE_PREFERENCE_BOOL(DivePlanner, "o2narcotic", o2narcotic); HANDLE_PREFERENCE_BOOL(DivePlanner, "drop_stone_mode", drop_stone_mode); |