diff code_part1/OSTC_code_c_part2/p2_deco.c @ 633:242139da29f2

save stop time instead of stop depth in char_O_deco_time_for_log
author heinrichsweikamp
date Mon, 10 Sep 2012 08:42:56 +0200
parents 6526a5b058b7
children b48f613398f9
line wrap: on
line diff
--- a/code_part1/OSTC_code_c_part2/p2_deco.c	Sat Sep 08 20:33:51 2012 +0200
+++ b/code_part1/OSTC_code_c_part2/p2_deco.c	Mon Sep 10 08:42:56 2012 +0200
@@ -680,7 +680,7 @@
         for(y=0; y<NUM_STOPS; y++, --x)
         {
             char_O_deco_depth[y] = internal_deco_depth[x];
-            char_O_deco_time_for_log[y] = internal_deco_depth[x];
+            char_O_deco_time_for_log[y] = internal_deco_time [x];
             char_O_deco_time [y] = internal_deco_time [x];
 
             // Stop only once the last transfer is done.
@@ -713,7 +713,7 @@
         //---- Second: copy to output table (in reverse order)
         for(y=0; y<NUM_STOPS; y++, --x)
         {
-            char_O_deco_time_for_log[y] = internal_deco_depth[x];
+            char_O_deco_time_for_log[y] = internal_deco_time [x];
 
             // Stop only once the last transfer is done.
             if( x == 0 ) break;