From 6cf574396adfb08f7fe7fe6f7ce68387fd474018 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Thu, 21 Nov 2019 22:40:29 -0800 Subject: [Keyboard] Update default keymaps to use `layer_state_t` (#7444) * Update default keymaps to use `layer_state_t` * Convert binon32 as get_highest_layer in default keymaps --- keyboards/tanuki/keymaps/default/keymap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'keyboards/tanuki/keymaps/default/keymap.c') diff --git a/keyboards/tanuki/keymaps/default/keymap.c b/keyboards/tanuki/keymaps/default/keymap.c index 7c3e11f27d..c10a868afe 100644 --- a/keyboards/tanuki/keymaps/default/keymap.c +++ b/keyboards/tanuki/keymaps/default/keymap.c @@ -59,10 +59,10 @@ void keyboard_post_init_user(void) { } } -uint32_t layer_state_set_user(uint32_t state) { +layer_state_t layer_state_set_user(layer_state_t state) { // This code switches underglow color by active layer, if the user has enabled the feature if(user_config.layer_rgb) { - switch (biton32(state)) { + switch (get_highest_layer(state)) { case _BL: rgblight_sethsv_noeeprom(0,10,255); rgblight_mode_noeeprom(1); -- cgit v1.2.1