core: Fix for build option NO_ACTION_LAYER
This commit is contained in:
parent
956f806644
commit
45f6e5cb97
2 changed files with 1 additions and 18 deletions
|
|
@ -122,9 +122,8 @@ void layer_debug(void)
|
|||
/* return layer effective for key at this time */
|
||||
static uint8_t current_layer_for_key(keypos_t key)
|
||||
{
|
||||
action_t action = ACTION_TRANSPARENT;
|
||||
|
||||
#ifndef NO_ACTION_LAYER
|
||||
action_t action = ACTION_TRANSPARENT;
|
||||
uint32_t layers = layer_state | default_layer_state;
|
||||
/* check top layer first */
|
||||
for (int8_t i = 31; i >= 0; i--) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue