diff code_part1/OSTC_code_c_part2/p2_deco.c @ 580:32448d5ca734

BUGFIX: GasVolume should not count bottom time/depth in CCR mode.
author JeanDo
date Tue, 24 Apr 2012 23:51:03 +0200
parents fff1d38625f0
children 855a00c21d0c
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Tue Apr 24 23:47:13 2012 +0200
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Tue Apr 24 23:51:03 2012 +0200
@@ -2340,7 +2340,7 @@
     gas = char_I_first_gas - 1;
 
     bottom_usage = (float) read_custom_function(56);
-    if( bottom_usage > 0.0 )
+    if( char_I_const_ppO2 == 0 && bottom_usage > 0.0 )
         volumes[gas]
             = (char_I_bottom_depth*0.1 + 1.0)           // Use Psurface = 1.0 bar.
             * char_I_bottom_time                        // in minutes.