summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian <fd@librem.one>2020-03-03 10:14:06 +0900
committerFlorian <fd@librem.one>2020-03-03 10:14:06 +0900
commit9619d1e4fff086b9bb29e0d69e1bce856f90b237 (patch)
treefd0998ab6f8bce36d6c1c7f5afec5b2095d7fc4d
parent3cab0731b6a89d08115414b652b2df1c1abfc2fa (diff)
fix: adjust layer not being sent properly over webusb
-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 08523185bc..bfcd724db1 100644
--- a/tmk_core/common/action_layer.c
+++ b/tmk_core/common/action_layer.c
@@ -99,10 +99,10 @@ __attribute__((weak)) layer_state_t layer_state_set_kb(layer_state_t state) { re
* Sets the layer to match the specifed state (a bitmask)
*/
void layer_state_set(layer_state_t state) {
+ state = layer_state_set_kb(state);
#ifdef ORYX_ENABLE
layer_state_set_oryx(state);
#endif
- state = layer_state_set_kb(state);
dprint("layer_state: ");
layer_debug();
dprint(" to ");