Make default layer size 16-bit (#15286)

Co-authored-by: James Young <18669334+noroadsleft@users.noreply.github.com>
This commit is contained in:
Drashna Jaelre 2022-06-18 14:37:51 -07:00 committed by GitHub
parent 8934dc35bc
commit 4cb66426fc
4 changed files with 5 additions and 5 deletions

View file

@ -95,9 +95,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
bool encoder_update_user(uint8_t index, bool clockwise) {
if (index == 0) {
if (clockwise) {
tap_code(dynamic_keymap_get_keycode(biton32(layer_state), 4, 3));
tap_code(dynamic_keymap_get_keycode(get_highest_layer(layer_state), 4, 3));
} else {
tap_code(dynamic_keymap_get_keycode(biton32(layer_state), 4, 4));
tap_code(dynamic_keymap_get_keycode(get_highest_layer(layer_state), 4, 4));
}
}
return true;