Bug fix & added default_layer_state_set_kb

This commit is contained in:
Priyadi Iman Nurcahyo
2017-02-15 05:19:31 +07:00
parent 5e31074633
commit 3c8c3ebe3f
2 changed files with 11 additions and 2 deletions

View File

@ -16,8 +16,14 @@
*/
uint32_t default_layer_state = 0;
__attribute__((weak))
uint32_t default_layer_state_set_kb(uint32_t state) {
return state;
}
static void default_layer_state_set(uint32_t state)
{
state = default_layer_state_set_kb(state);
debug("default_layer_state: ");
default_layer_debug(); debug(" to ");
default_layer_state = state;