From 93058f28ea886b06a012daeba49c3c9eb95a587d Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 17 Jan 2015 10:11:06 +0100 Subject: Use correct divemode (PSCR in particular) in deco calculation I had forgotten this dead code. Sorry. Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- deco.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deco.c') 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; -- cgit v1.2.3-70-g09d2