From 4a0a1603d27c1b96c8388292431518243e090050 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sat, 17 Sep 2022 05:03:40 -0600 Subject: [PATCH] quantum/keymap_common: backwards compat for TO() --- quantum/keymap_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index 8d7a8bda9a..c41bf8f8bd 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -84,7 +84,7 @@ action_t action_for_keycode(uint16_t keycode) { break; case QK_TO ... QK_TO_MAX:; // Layer set "GOTO" - action_layer = keycode & 0xFF; + action_layer = keycode & 0xF; action.code = ACTION_LAYER_GOTO(action_layer); break; case QK_MOMENTARY ... QK_MOMENTARY_MAX:;