summaryrefslogtreecommitdiff
path: root/keyboards/ktec/ergodone/keymaps/erovia/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/ktec/ergodone/keymaps/erovia/keymap.c')
-rw-r--r--keyboards/ktec/ergodone/keymaps/erovia/keymap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keyboards/ktec/ergodone/keymaps/erovia/keymap.c b/keyboards/ktec/ergodone/keymaps/erovia/keymap.c
index 279c8a57c1..502c0dafe6 100644
--- a/keyboards/ktec/ergodone/keymaps/erovia/keymap.c
+++ b/keyboards/ktec/ergodone/keymaps/erovia/keymap.c
@@ -204,7 +204,7 @@ void matrix_init_user(void) {
layer_state_t layer_state_set_user(layer_state_t state) {
ergodox_led_all_off();
- switch (biton32(state)) {
+ switch (get_highest_layer(state)) {
case FN:
// Red led on Pro Micro for Fn layer
ergodox_board_led_on();