Browse Source

Run eeconfig after _kb/_user functions are called

pull/11383/head
Drashna Jael're 3 years ago
parent
commit
b8f13e76ca
No known key found for this signature in database GPG Key ID: DBA1FD3A860D1B11
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tmk_core/common/action_layer.c

+ 2
- 2
tmk_core/common/action_layer.c View File

@ -32,13 +32,13 @@ __attribute__((weak)) layer_state_t default_layer_state_set_kb(layer_state_t sta
* Static function to set the default layer state, prints debug info and clears keys
*/
static void default_layer_state_set(layer_state_t state) {
state = default_layer_state_set_kb(state);
static bool has_run = false;
if (has_run) {
if (has_run) {
eeconfig_update_default_layer(state);
} else {
has_run = true;
}
state = default_layer_state_set_kb(state);
debug("default_layer_state: ");
default_layer_debug();
debug(" to ");


Loading…
Cancel
Save