diff src/p2_deco.c @ 602:ab88a7e3de94

2.98 release
author heinrichsweikamp
date Mon, 27 Aug 2018 09:40:31 +0200
parents 66334c6adcf6
children ca4556fb60b9
line wrap: on
line diff
--- a/src/p2_deco.c	Tue Aug 14 11:01:47 2018 +0200
+++ b/src/p2_deco.c	Mon Aug 27 09:40:31 2018 +0200
@@ -1312,7 +1312,7 @@
 	// capture failure condition in case pres_respiration is < ppWater (should never happen...)
 	if( O2_ppO2 < 0.0 ) O2_ppO2 = 0.0;
 
-	// calculate ppO2 of the pure gas (diluent)
+	// calculate ppO2 of the pure gas (OC, diluent)
 	OC_ppO2 = O2_ppO2 * calc_O2_ratio;
 
 	// calculate pSCR ppO2
@@ -1361,7 +1361,7 @@
 
 		// adjust diluent pressure (ppN2 + ppHe) for change
 		// in ppO2 due to setpoint (CCR) or drop (pSCR)
-		pres_diluent -= const_ppO2;
+		pres_diluent -= ppO2;
 		pres_diluent /= calc_N2_ratio + calc_He_ratio;
 
 		// capture all failure conditions, including div/0