# HG changeset patch # User JeanDo # Date 1330195303 -3600 # Node ID 7bec4cf28cc7cfcd304662d96574fc2d470ad065 # Parent 56753ea6a791ac779762947626afe5012d8dc9a7 BUGFIX bad CNS in decoplan when CF54 set. diff -r 56753ea6a791 -r 7bec4cf28cc7 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Sat Feb 25 15:13:26 2012 +0100 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Sat Feb 25 19:41:43 2012 +0100 @@ -2201,6 +2201,7 @@ overlay unsigned char i = 0; // Decostop loop counter overlay float actual_ppO2; overlay unsigned char time, t; + overlay unsigned char deepest_first = (read_custom_function(54) == 0); //---- Ascent to surface delay // NOTE: count as if time is spent with bottom pressure, @@ -2220,20 +2221,35 @@ sim_dive_mins++; } - //---- Do all further stops + //---- Do all further stops ------------------------------------------ for(i=0; i