diff options
Diffstat (limited to 'keyboards/mechlovin/kanu/kanu.c')
| -rw-r--r-- | keyboards/mechlovin/kanu/kanu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/keyboards/mechlovin/kanu/kanu.c b/keyboards/mechlovin/kanu/kanu.c index 991778516..d19b7f103 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) { | |||
| 35 | return true; | 35 | return true; |
| 36 | } | 36 | } |
| 37 | 37 | ||
| 38 | layer_state_t layer_state_set_kb(layer_state_t state) { | 38 | __attribute__((weak)) |
| 39 | layer_state_t layer_state_set_user(layer_state_t state) { | ||
| 39 | // if on layer 1, turn on D2 LED, otherwise off. | 40 | // if on layer 1, turn on D2 LED, otherwise off. |
| 40 | writePin(D2, get_highest_layer(state) == 1); | 41 | writePin(D2, get_highest_layer(state) == 1); |
| 41 | // if on layer 2, turn on D1 LED, otherwise off. | 42 | // 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) { | |||
| 43 | // if on layer 3, turn on D0 LED, otherwise off. | 44 | // if on layer 3, turn on D0 LED, otherwise off. |
| 44 | writePin(D0, get_highest_layer(state) == 3); | 45 | writePin(D0, get_highest_layer(state) == 3); |
| 45 | return state; | 46 | return state; |
| 46 | } \ No newline at end of file | 47 | } |
