From bae1144a9f45e0b9157cc489ab0b6c66f3cd22cb Mon Sep 17 00:00:00 2001 From: Joe Wasson Date: Sat, 19 Aug 2017 21:43:07 -0700 Subject: [PATCH] Fix compilation error when NO_ACTION_LAYER is defined. --- tmk_core/common/action_layer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c index 58d919a0..c6a166a8 100644 --- a/tmk_core/common/action_layer.c +++ b/tmk_core/common/action_layer.c @@ -188,10 +188,10 @@ action_t store_or_get_action(bool pressed, keypos_t key) int8_t layer_switch_get_layer(keypos_t key) { +#ifndef NO_ACTION_LAYER action_t action; action.code = ACTION_TRANSPARENT; -#ifndef NO_ACTION_LAYER uint32_t layers = layer_state | default_layer_state; /* check top layer first */ for (int8_t i = 31; i >= 0; i--) {