X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=common%2Fcommand.c;h=202d531fd83363a0f9e08a6c6e38d55a366a7a31;hb=a207e848b3b308406263576c1e0d066067888416;hp=82f647c8f3e5d4de827a6d724f009da5ea0f3d86;hpb=d9f287586635a401b8d6a80614bee6dbebe2f18c;p=max%2Ftmk_keyboard.git diff --git a/common/command.c b/common/command.c index 82f647c8..202d531f 100644 --- a/common/command.c +++ b/common/command.c @@ -543,12 +543,8 @@ static uint8_t numkey2num(uint8_t code) static void switch_default_layer(uint8_t layer) { - print_val_hex8(current_layer); - print_val_hex8(default_layer); - print("switch to "); print_val_hex8(layer); - - default_layer = layer; - current_layer = 0; /* 0 means default_layer */ - layer_switch_clear(); + print("switch_default_layer: "); print_dec(default_layer); print(" to "); print_dec(layer); print("\n"); + default_layer_set(layer); + overlay_clear(); clear_keyboard(); }