summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoe Wasson <jwasson+github@gmail.com>2017-08-19 21:43:07 -0700
committerJack Humbert <jack.humb@gmail.com>2017-08-20 11:51:57 -0400
commitbae1144a9f45e0b9157cc489ab0b6c66f3cd22cb (patch)
treefde21a12cd517bd6e520ca735eaba0e426b532bc
parenteb5748e8bf349883f8b727e33868e965c2f977bf (diff)
Fix compilation error when NO_ACTION_LAYER is defined.
-rw-r--r--tmk_core/common/action_layer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/common/action_layer.c b/tmk_core/common/action_layer.c
index 58d919a04d..c6a166a823 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--) {