Improve layer mask handling (#13065)

This commit is contained in:
Drashna Jaelre authored and GitHub committed 2021-07-03 00:19:52 -07:00
1 parent 03807c2c6e
commit 8da8aabbe5
4 files changed
+38 -13

No files matched your search

+1 -1
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();
}