Rewrite layer action with layer_switch
This commit is contained in:
parent
0142b571c4
commit
e324fa2918
7 changed files with 148 additions and 112 deletions
|
@ -543,12 +543,9 @@ 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);
|
||||
|
||||
// TODO check existence of layer or whether it can be used as default layer
|
||||
print("switch_default_layer: "); print_dec(default_layer); print(" to "); print_dec(layer);
|
||||
default_layer = layer;
|
||||
current_layer = 0; /* 0 means default_layer */
|
||||
layer_switch_clear();
|
||||
clear_keyboard();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue