diff options
author | Drashna Jaelre <drashna@live.com> | 2022-06-18 14:37:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-19 07:37:51 +1000 |
commit | 0da6562c4df570729889690e21061229c5648b73 (patch) | |
tree | fe4145db4772116d55bf5f9af2502b041a8f31b7 /keyboards/tetris/keymaps/default/keymap.c | |
parent | cfcd647b2eec10d510194ca84cd37486fcf44fd4 (diff) |
Make default layer size 16-bit (#15286)
Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
Diffstat (limited to 'keyboards/tetris/keymaps/default/keymap.c')
-rwxr-xr-x | keyboards/tetris/keymaps/default/keymap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/keyboards/tetris/keymaps/default/keymap.c b/keyboards/tetris/keymaps/default/keymap.c index 1b53ea80b9..9e2a96ffc3 100755 --- a/keyboards/tetris/keymaps/default/keymap.c +++ b/keyboards/tetris/keymaps/default/keymap.c @@ -37,7 +37,7 @@ void matrix_init_user(void) { } void matrix_scan_user(void) { - uint8_t layer = biton32(layer_state); + uint8_t layer = get_highest_layer(layer_state); if (RGB_encoder_dir != 0) { if (timer_elapsed(RGB_encoder_timer) > 1400) { @@ -152,7 +152,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t * record) { bool encoder_update_user(uint8_t index, bool clockwise) { RGB_encoder_timer = timer_read(); RGB_encoder_timer2 = timer_read(); - uint8_t layer = biton32(layer_state); + uint8_t layer = get_highest_layer(layer_state); if (clockwise) { RGB_encoder_dir = 1; } else { |