1
0
Fork 0

Improve layer mask handling (#13065)

This commit is contained in:
Drashna Jael're 2021-07-03 00:19:52 -07:00 committed by GitHub
parent 03807c2c6e
commit 8da8aabbe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 13 deletions

View file

@ -781,6 +781,6 @@ uint8_t numkey2num(uint8_t code) {
static void switch_default_layer(uint8_t layer) {
xprintf("L%d\n", layer);
default_layer_set(1UL << layer);
default_layer_set((layer_state_t)1 << layer);
clear_keyboard();
}