aboutsummaryrefslogtreecommitdiff
path: root/common/layer_switch.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/layer_switch.c')
-rw-r--r--common/layer_switch.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/layer_switch.c b/common/layer_switch.c
index 19e286f88..815d1e5f2 100644
--- a/common/layer_switch.c
+++ b/common/layer_switch.c
@@ -98,6 +98,7 @@ void keymap_debug(void)
98 98
99 99
100 100
101#ifndef NO_ACTION_OVERLAY
101/* 102/*
102 * Overlay Layer (16-31 = 0-15|0x10) 103 * Overlay Layer (16-31 = 0-15|0x10)
103 */ 104 */
@@ -169,12 +170,14 @@ void overlay_debug(void)
169{ 170{
170 debug_hex16(overlay_stat); debug("("); debug_dec(overlay_get_layer()); debug(")"); 171 debug_hex16(overlay_stat); debug("("); debug_dec(overlay_get_layer()); debug(")");
171} 172}
173#endif
172 174
173action_t layer_switch_get_action(key_t key) 175action_t layer_switch_get_action(key_t key)
174{ 176{
175 action_t action; 177 action_t action;
176 action.code = ACTION_TRANSPARENT; 178 action.code = ACTION_TRANSPARENT;
177 179
180#ifndef NO_ACTION_OVERLAY
178 /* overlay: top layer first */ 181 /* overlay: top layer first */
179 for (int8_t i = 15; i >= 0; i--) { 182 for (int8_t i = 15; i >= 0; i--) {
180 if (overlay_stat & (1<<i)) { 183 if (overlay_stat & (1<<i)) {
@@ -184,6 +187,7 @@ action_t layer_switch_get_action(key_t key)
184 } 187 }
185 } 188 }
186 } 189 }
190#endif
187 191
188 /* keymap: top layer first */ 192 /* keymap: top layer first */
189 for (int8_t i = 15; i >= 0; i--) { 193 for (int8_t i = 15; i >= 0; i--) {