Mercurial > louis > kiibohd-controller
changeset 371:23104e8e24f4
Fixing layer stack evaluation
- Layers were stacked correctly, but evaluated backwards
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Fri, 21 Aug 2015 20:33:47 -0700 |
parents | 39e338a6733d |
children | b6f4cfff9d1a |
files | Macro/PartialMap/macro.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Macro/PartialMap/macro.c Fri Aug 21 19:43:45 2015 -0700 +++ b/Macro/PartialMap/macro.c Fri Aug 21 20:33:47 2015 -0700 @@ -374,7 +374,7 @@ } // If no trigger macro is defined at the given layer, fallthrough to the next layer - for ( uint16_t layerIndex = 0; layerIndex < macroLayerIndexStackSize; layerIndex++ ) + for ( uint16_t layerIndex = macroLayerIndexStackSize; layerIndex != 0xFFFF; layerIndex-- ) { // Lookup Layer const Layer *layer = &LayerIndex[ macroLayerIndexStack[ layerIndex ] ];