Mercurial > public > mk2
comparison 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 |
comparison
equal
deleted
inserted
replaced
632:41df16e18b2b | 633:242139da29f2 |
---|---|
678 | 678 |
679 //---- Second: copy to output table (in reverse order) | 679 //---- Second: copy to output table (in reverse order) |
680 for(y=0; y<NUM_STOPS; y++, --x) | 680 for(y=0; y<NUM_STOPS; y++, --x) |
681 { | 681 { |
682 char_O_deco_depth[y] = internal_deco_depth[x]; | 682 char_O_deco_depth[y] = internal_deco_depth[x]; |
683 char_O_deco_time_for_log[y] = internal_deco_depth[x]; | 683 char_O_deco_time_for_log[y] = internal_deco_time [x]; |
684 char_O_deco_time [y] = internal_deco_time [x]; | 684 char_O_deco_time [y] = internal_deco_time [x]; |
685 | 685 |
686 // Stop only once the last transfer is done. | 686 // Stop only once the last transfer is done. |
687 if( x == 0 ) break; | 687 if( x == 0 ) break; |
688 } | 688 } |
711 if( internal_deco_depth[x] != 0 ) break; | 711 if( internal_deco_depth[x] != 0 ) break; |
712 | 712 |
713 //---- Second: copy to output table (in reverse order) | 713 //---- Second: copy to output table (in reverse order) |
714 for(y=0; y<NUM_STOPS; y++, --x) | 714 for(y=0; y<NUM_STOPS; y++, --x) |
715 { | 715 { |
716 char_O_deco_time_for_log[y] = internal_deco_depth[x]; | 716 char_O_deco_time_for_log[y] = internal_deco_time [x]; |
717 | 717 |
718 // Stop only once the last transfer is done. | 718 // Stop only once the last transfer is done. |
719 if( x == 0 ) break; | 719 if( x == 0 ) break; |
720 } | 720 } |
721 | 721 |