changeset 580:32448d5ca734

BUGFIX: GasVolume should not count bottom time/depth in CCR mode.
author JeanDo
date Tue, 24 Apr 2012 23:51:03 +0200 (2012-04-24)
parents fff1d38625f0
children 855a00c21d0c
files code_part1/OSTC_code_asm_part1/changelog.txt code_part1/OSTC_code_c_part2/p2_deco.c code_part1/OSTC_code_c_part2/p2_deco.o
diffstat 3 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/code_part1/OSTC_code_asm_part1/changelog.txt	Tue Apr 24 23:47:13 2012 +0200
+++ b/code_part1/OSTC_code_asm_part1/changelog.txt	Tue Apr 24 23:51:03 2012 +0200
@@ -3,6 +3,7 @@
 NEW: Custom Functions III menu (CF64-CF95)
 BUGFIX: Missed deco stops issue
 BUGFIX: Timeout for 2nd page of Gas Setup
+BUGFIX: GasVolume checks for a gas-switch before the first stop
 
 New in 2.21:
 BUGFIX: GF warning in logbook memory
--- 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.
Binary file code_part1/OSTC_code_c_part2/p2_deco.o has changed