mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-12-15 06:10:53 +00:00
99cd0b13e1
* Refactor some led_set_kb instances * Apply suggestions from code review Co-authored-by: Ryan <fauxpark@gmail.com> Co-authored-by: Ryan <fauxpark@gmail.com>
22 lines
446 B
C
22 lines
446 B
C
#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;
|
|
}
|