# HG changeset patch # User JeanDo # Date 1303354452 -7200 # Node ID 9feb224f68710b294a2fc61229de3fa44c62a79c # Parent 5f2fe81fde9fd7b9a80cfab24f46a957bfc51624 Manage gas-switch marked stops in volume consumption. diff -r 5f2fe81fde9f -r 9feb224f6871 code_part1/OSTC_code_c_part2/p2_deco.c --- a/code_part1/OSTC_code_c_part2/p2_deco.c Thu Apr 21 04:16:00 2011 +0200 +++ b/code_part1/OSTC_code_c_part2/p2_deco.c Thu Apr 21 04:54:12 2011 +0200 @@ -2367,18 +2367,18 @@ time = char_O_deco_time[i]; if( time == 0 ) break; // End of table: done. - ascent = depth = char_O_deco_depth[i]; + ascent = depth = char_O_deco_depth[i] & 0x7F; if( i < 31 ) - ascent -= char_O_deco_depth[i+1]; + ascent -= char_O_deco_depth[i+1] & 0x7F; } else { time = char_O_deco_time[31-i]; if( time == 0 ) continue; // not yet: still searh table. - ascent = depth = char_O_deco_depth[31-i]; + ascent = depth = char_O_deco_depth[31-i] & 0x7F; if( i < 31 ) - ascent -= char_O_deco_depth[30-i]; + ascent -= char_O_deco_depth[30-i] & 0x7F; } // Gas switch depth ? diff -r 5f2fe81fde9f -r 9feb224f6871 code_part1/OSTC_code_c_part2/p2_deco.o Binary file code_part1/OSTC_code_c_part2/p2_deco.o has changed