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 );