summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2023-02-11 22:07:01 -0800
committerGitHub <noreply@github.com>2023-02-12 17:07:01 +1100
commitb1f4d49c43e5034b44e34c5ee6e2d9a72195e41d (patch)
tree18bd5d03802f71e1a9cc37808c52965abf98a597
parent9c6942ea40e675e2f9d8022d893184776d5a7e49 (diff)
[Bug] Fix tri layer compiler issue if NO_ACTION_LAYER is defined (#19821)
-rw-r--r--quantum/action_layer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/quantum/action_layer.c b/quantum/action_layer.c
index 35f494df8f..789a7fddeb 100644
--- a/quantum/action_layer.c
+++ b/quantum/action_layer.c
@@ -350,6 +350,7 @@ action_t layer_switch_get_action(keypos_t key) {
return action_for_key(layer_switch_get_layer(key), key);
}
+#ifndef NO_ACTION_LAYER
layer_state_t update_tri_layer_state(layer_state_t state, uint8_t layer1, uint8_t layer2, uint8_t layer3) {
layer_state_t mask12 = ((layer_state_t)1 << layer1) | ((layer_state_t)1 << layer2);
layer_state_t mask3 = (layer_state_t)1 << layer3;
@@ -359,3 +360,4 @@ layer_state_t update_tri_layer_state(layer_state_t state, uint8_t layer1, uint8_
void update_tri_layer(uint8_t layer1, uint8_t layer2, uint8_t layer3) {
layer_state_set(update_tri_layer_state(layer_state, layer1, layer2, layer3));
}
+#endif