Hi,

some legacy code prevented the deco code (planner and ceiling) gets to know 
about PSCR mode. This corrects it.

Sorry
Robert

From f55367f061d27f264f0e8693b837ca112f6080a2 Mon Sep 17 00:00:00 2001
From: "Robert C. Helling" <[email protected]>
Date: Sat, 17 Jan 2015 10:11:06 +0100
Subject: [PATCH] Use correct divemode (PSCR in particular) in deco calculation

I had forgotten this dead code. Sorry.

Signed-off-by: Robert C. Helling <[email protected]>
---
 deco.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/deco.c b/deco.c
index c2d54d5..14f88f6 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;
-- 
1.9.3 (Apple Git-50)

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to