Mercurial > louis > kiibohd-controller
diff 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 |
line wrap: on
line diff
--- a/Macro/PartialMap/macro.c Fri Jun 19 20:14:37 2015 -0700 +++ b/Macro/PartialMap/macro.c Tue Jun 23 07:58:31 2015 -0700 @@ -226,10 +226,10 @@ print(" 0"); // Iterate over the layer stack starting from the bottom of the stack - for ( uint16_t index = 0; index < macroLayerIndexStackSize; index++ ) + for ( uint16_t index = macroLayerIndexStackSize; index > 0; index-- ) { print(":"); - printHex_op( macroLayerIndexStack[ index ], 0 ); + printHex_op( macroLayerIndexStack[ index - 1 ], 0 ); } print( NL );