Skip to content

Commit

Permalink
Enable layer LED indicators
Browse files Browse the repository at this point in the history
Call led_set() also on layer actions so LEDs can show layer states.
  • Loading branch information
Nephiel committed Sep 4, 2015
1 parent d639401 commit 12debc6
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions tmk_core/common/action.c
Expand Up @@ -334,10 +334,23 @@ void process_action(keyrecord_t *record)
default:
break;
}
}


#ifndef NO_ACTION_LAYER
// if this event is a layer action, update the leds
switch (action.kind.id) {
case ACT_LAYER:
#ifndef NO_ACTION_TAPPING
case ACT_LAYER_TAP:
case ACT_LAYER_TAP_EXT:
#endif
led_set(host_keyboard_leds());
break;
default:
break;
}
#endif

}

/*
* Utilities for actions.
Expand Down

0 comments on commit 12debc6

Please sign in to comment.