diff options
author | Robert C. Helling <helling@atdotde.de> | 2014-06-25 14:00:03 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-06-25 21:07:10 +0800 |
commit | 65c5d6815cf7c78231abd76440bb5bab54d9d51c (patch) | |
tree | 8f6820921ec40aeeeb5b475d74b7cfb567a782c7 /subsurfacestartup.c | |
parent | c7231adde1cddc64dfa47450393e97afa6c39d0f (diff) | |
download | subsurface-65c5d6815cf7c78231abd76440bb5bab54d9d51c.tar.gz |
Make pO2 settings functional in planner
Spin boxes for pO2 are now hooked up to preference values. Adding new
cylinders (or changing their fo2) computes the MOD accordin to the current
value of decopo2. Note that chaning the limits for deco pO2 does _not_
automatically update the switch depth of all cylinders as those might have
been manually entered.
Furthermore, MOD has now to option of rounding to multiples of a given
depth. That is used for the automatic switch depth which are now always
multiples of 3m (so that EAN50 is switched to at 21m rather than 22m).
Signed-off-by: Robert C. Helling <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurfacestartup.c')
-rw-r--r-- | subsurfacestartup.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/subsurfacestartup.c b/subsurfacestartup.c index 463aea63a..8d8d848f2 100644 --- a/subsurfacestartup.c +++ b/subsurfacestartup.c @@ -37,7 +37,9 @@ struct preferences default_prefs = { .ascrate50 = 6000 / 60, .ascratestops = 6000 / 60, .ascratelast6m = 1000 / 60, - .descrate = 18000 / 60 + .descrate = 18000 / 60, + .bottompo2 = 1400, + .decopo2 = 1600 }; int run_survey; |