summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfauxpark <fauxpark@gmail.com>2019-05-30 00:45:28 +1000
committerMechMerlin <30334081+mechmerlin@users.noreply.github.com>2019-05-29 07:45:28 -0700
commitd16056e60a4ac20ad4b2d7bef3ecebe82d22674b (patch)
tree1f5fc13f94222b2cab197f709ddd334af4544a31
parent287767bba10ac866fae2ffadd45b2315c1e184e6 (diff)
Fix TO() and DF() calling layer_state_set_[kb,user] twice (#6003)
-rw-r--r--tmk_core/common/action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c
index 3991a8a9ef..6a560229a6 100644
--- a/tmk_core/common/action.c
+++ b/tmk_core/common/action.c
@@ -412,7 +412,7 @@ void process_action(keyrecord_t *record, action_t action)
case OP_BIT_AND: default_layer_and(bits | mask); break;
case OP_BIT_OR: default_layer_or(bits | mask); break;
case OP_BIT_XOR: default_layer_xor(bits | mask); break;
- case OP_BIT_SET: default_layer_and(mask); default_layer_or(bits); break;
+ case OP_BIT_SET: default_layer_set(bits | mask); break;
}
}
} else {
@@ -426,7 +426,7 @@ void process_action(keyrecord_t *record, action_t action)
case OP_BIT_AND: layer_and(bits | mask); break;
case OP_BIT_OR: layer_or(bits | mask); break;
case OP_BIT_XOR: layer_xor(bits | mask); break;
- case OP_BIT_SET: layer_and(mask); layer_or(bits); break;
+ case OP_BIT_SET: layer_state_set(bits | mask); break;
}
}
}