diff options
author | tmk <nobody@nowhere> | 2013-06-22 16:14:56 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2013-06-22 16:24:56 +0900 |
commit | 9de9d719527c7a8cac71d0bc49ba1d2d4f63cf06 (patch) | |
tree | 5cfd02ffd53d5be7c40453644558319f75b48fa8 /common/command.c | |
parent | 2593ae132812414f02e7cf483bb141cd2c78595c (diff) |
Add default layer config to bootmagic
Diffstat (limited to 'common/command.c')
-rw-r--r-- | common/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/command.c b/common/command.c index 74b7c5ebcf..73a72b4a1d 100644 --- a/common/command.c +++ b/common/command.c @@ -129,7 +129,7 @@ static void command_common_help(void) #ifdef BOOTMAGIC_ENABLE static void print_eeconfig(void) { - print("default_layer: "); print_dec(eeconfig_read_defalt_layer()); print("\n"); + print("default_layer: "); print_dec(eeconfig_read_default_layer()); print("\n"); debug_config_t dc; dc.raw = eeconfig_read_debug(); @@ -579,6 +579,6 @@ static void switch_default_layer(uint8_t layer) { print("switch_default_layer: "); print_dec(biton32(default_layer_state)); print(" to "); print_dec(layer); print("\n"); - default_layer_set(layer); + default_layer_set(1UL<<layer); clear_keyboard(); } |