2016-12-19 00:35:03 +01:00
|
|
|
#include "xd60.h"
|
|
|
|
|
2017-05-27 00:25:35 +02:00
|
|
|
|
|
|
|
extern inline void xd60_caps_led_on(void);
|
|
|
|
extern inline void xd60_bl_led_on(void);
|
|
|
|
|
|
|
|
extern inline void xd60_caps_led_off(void);
|
|
|
|
extern inline void xd60_bl_led_off(void);
|
|
|
|
|
|
|
|
|
2022-12-09 02:42:22 +01:00
|
|
|
bool led_update_kb(led_t led_state) {
|
|
|
|
bool res = led_update_user(led_state);
|
|
|
|
if(res) {
|
|
|
|
if (led_state.caps_lock) {
|
|
|
|
xd60_caps_led_on();
|
|
|
|
} else {
|
|
|
|
xd60_caps_led_off();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return res;
|
2016-12-19 00:35:03 +01:00
|
|
|
}
|