summaryrefslogtreecommitdiffstats
path: root/keyboards/mechlovin/kanu/kanu.c
diff options
context:
space:
mode:
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
+}