Browse Source

Fixing layer stack evaluation

- Layers were stacked correctly, but evaluated backwards
capsense
Jacob Alexander 8 years ago
parent
commit
51486bc4e1
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Macro/PartialMap/macro.c

+ 1
- 1
Macro/PartialMap/macro.c View File

} }


// If no trigger macro is defined at the given layer, fallthrough to the next layer // 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 // Lookup Layer
const Layer *layer = &LayerIndex[ macroLayerIndexStack[ layerIndex ] ]; const Layer *layer = &LayerIndex[ macroLayerIndexStack[ layerIndex ] ];