summaryrefslogtreecommitdiff
path: root/quantum/process_keycode/process_dynamic_macro.c
diff options
context:
space:
mode:
authorDesprez Jean-Marc <jm.desprez@gmail.com>2022-02-06 17:55:16 +0100
committerGitHub <noreply@github.com>2022-02-06 08:55:16 -0800
commit5a0e129f1160ee439f6be4504fb935204ae86436 (patch)
tree9c297ebdc89efcdd74bdf3ce22c72a6d510de7da /quantum/process_keycode/process_dynamic_macro.c
parent89cc668b738b2f00875410c68dd619f1b0a7926c (diff)
downloadqmk_firmware-5a0e129f1160ee439f6be4504fb935204ae86436.tar.gz
qmk_firmware-5a0e129f1160ee439f6be4504fb935204ae86436.zip
[Bug] Fix layer_state restoration at end of dynamic macro feature (#16230)
Diffstat (limited to 'quantum/process_keycode/process_dynamic_macro.c')
-rw-r--r--quantum/process_keycode/process_dynamic_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_dynamic_macro.c b/quantum/process_keycode/process_dynamic_macro.c
index 18c8d7ca2e..0feb634014 100644
--- a/quantum/process_keycode/process_dynamic_macro.c
+++ b/quantum/process_keycode/process_dynamic_macro.c
@@ -82,7 +82,7 @@ void dynamic_macro_play(keyrecord_t *macro_buffer, keyrecord_t *macro_end, int8_
clear_keyboard();
- layer_state = saved_layer_state;
+ layer_state_set(saved_layer_state);
dynamic_macro_play_user(direction);
}