2017-08-09 06:47:16 -07:00
|
|
|
#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);
|
|
|
|
|
|
|
|
|
2022-12-08 17:42:22 -08:00
|
|
|
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;
|
2017-08-09 06:47:16 -07:00
|
|
|
}
|