changeset 288:9feb224f6871

Manage gas-switch marked stops in volume consumption.
author JeanDo
date Thu, 21 Apr 2011 04:54:12 +0200
parents 5f2fe81fde9f
children 6d8a2550c9ea
files code_part1/OSTC_code_c_part2/p2_deco.c code_part1/OSTC_code_c_part2/p2_deco.o
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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 ?
Binary file code_part1/OSTC_code_c_part2/p2_deco.o has changed