summaryrefslogtreecommitdiff
path: root/keyboards/org60/org60.c
blob: 940067538e72fa9ecbfa9f7a7704145eff6bcffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "org60.h"


extern inline void org60_caps_led_on(void);
extern inline void org60_bl_led_on(void);

extern inline void org60_caps_led_off(void);
extern inline void org60_bl_led_off(void);


bool led_update_kb(led_t led_state) {
    bool res = led_update_user(led_state);
    if(res) {
        if (led_state.caps_lock) {
            org60_caps_led_on();
        } else {
            org60_caps_led_off();
        }
    }
    return res;
}