Mercurial > louis > kiibohd-controller
diff Macro/PartialMap/macro.c @ 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 | 5aa3f6a92682 |
children | dbbdedccc275 |
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 ] ];