Added printk for layer changes

This commit is contained in:
Guido Bartolucci 2023-02-03 16:11:48 -05:00 committed by GitHub
parent 2a5e914a77
commit 604d14d66d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -85,6 +85,10 @@ static inline int set_layer_state(uint8_t layer, bool state) {
return -EINVAL;
}
if (state) {
printk("GUIDO: layer %d\n", layer);
}
// Default layer should *always* remain active
if (layer == _zmk_keymap_layer_default && !state) {
return 0;