summaryrefslogtreecommitdiffstats
path: root/deco.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-01-17 10:11:06 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-01-17 23:00:50 +1300
commit93058f28ea886b06a012daeba49c3c9eb95a587d (patch)
tree3134ced378e295e715eb9839a10909672a48b594 /deco.c
parent02d8dd5d13024830c99d92e8f981d6ee2051a7c9 (diff)
downloadsubsurface-93058f28ea886b06a012daeba49c3c9eb95a587d.tar.gz
Use correct divemode (PSCR in particular) in deco calculation
I had forgotten this dead code. Sorry. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'deco.c')
-rw-r--r--deco.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/deco.c b/deco.c
index c2d54d59c..14f88f6f0 100644
--- a/deco.c
+++ b/deco.c
@@ -190,7 +190,7 @@ double add_segment(double pressure, const struct gasmix *gasmix, int period_in_s
int ci;
struct gas_pressures pressures;
- fill_pressures(&pressures, pressure - WV_PRESSURE, gasmix, (double) ccpo2 / 1000.0, ccpo2 ? CCR : OC, sac);
+ fill_pressures(&pressures, pressure - WV_PRESSURE, gasmix, (double) ccpo2 / 1000.0, dive->dc.divemode, sac);
if (buehlmann_config.gf_low_at_maxdepth && pressure > gf_low_pressure_this_dive)
gf_low_pressure_this_dive = pressure;