comparison Macro/PartialMap/macro.c @ 345:2bcf6800b851

Fixing order of layer debug stack display - Adding NL's for fault messages
author Jacob Alexander <haata@kiibohd.com>
date Tue, 23 Jun 2015 07:58:31 -0700
parents f04450004adf
children dbefb68411e1
comparison
equal deleted inserted replaced
344:f04450004adf 345:2bcf6800b851
224 224
225 // Always show the default layer (it's always 0) 225 // Always show the default layer (it's always 0)
226 print(" 0"); 226 print(" 0");
227 227
228 // Iterate over the layer stack starting from the bottom of the stack 228 // Iterate over the layer stack starting from the bottom of the stack
229 for ( uint16_t index = 0; index < macroLayerIndexStackSize; index++ ) 229 for ( uint16_t index = macroLayerIndexStackSize; index > 0; index-- )
230 { 230 {
231 print(":"); 231 print(":");
232 printHex_op( macroLayerIndexStack[ index ], 0 ); 232 printHex_op( macroLayerIndexStack[ index - 1 ], 0 );
233 } 233 }
234 234
235 print( NL ); 235 print( NL );
236 } 236 }
237 } 237 }