瀏覽代碼

Fixing layer stack evaluation

- Layers were stacked correctly, but evaluated backwards
capsense
Jacob Alexander 8 年之前
父節點
當前提交
51486bc4e1
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      Macro/PartialMap/macro.c

+ 1
- 1
Macro/PartialMap/macro.c 查看文件

@@ -374,7 +374,7 @@ nat_ptr_t *Macro_layerLookup( TriggerGuide *guide, uint8_t latch_expire )
}

// 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 ] ];