summaryrefslogtreecommitdiffstats
path: root/keyboards/mechlovin/kanu/kanu.c
diff options
context:
space:
mode:
authorDan Hertz <daniel@dhertz.com>2021-01-12 17:53:15 -0800
committerGitHub <noreply@github.com>2021-01-12 17:53:15 -0800
commitc81e07fef5938a30ebf87b7e2beb99f8c135c59c (patch)
tree2a0682e15c32d07666e4a65b55da399591a91c9a /keyboards/mechlovin/kanu/kanu.c
parent1eaad6dd65db8d6d9f7e893ca6f354002d2dec61 (diff)
[Keymap] Add dhertz' kanu layout (#11346)
* Add dhertz' kanu layout * Fix delete button * Add weak user layer change
Diffstat (limited to 'keyboards/mechlovin/kanu/kanu.c')
-rw-r--r--keyboards/mechlovin/kanu/kanu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/mechlovin/kanu/kanu.c b/keyboards/mechlovin/kanu/kanu.c
index 9917785161..d19b7f1031 100644
--- a/keyboards/mechlovin/kanu/kanu.c
+++ b/keyboards/mechlovin/kanu/kanu.c
@@ -35,7 +35,8 @@ bool led_update_kb(led_t led_state) {
return true;
}
-layer_state_t layer_state_set_kb(layer_state_t state) {
+__attribute__((weak))
+layer_state_t layer_state_set_user(layer_state_t state) {
// if on layer 1, turn on D2 LED, otherwise off.
writePin(D2, get_highest_layer(state) == 1);
// if on layer 2, turn on D1 LED, otherwise off.
@@ -43,4 +44,4 @@ layer_state_t layer_state_set_kb(layer_state_t state) {
// if on layer 3, turn on D0 LED, otherwise off.
writePin(D0, get_highest_layer(state) == 3);
return state;
-} \ No newline at end of file
+}