|
|
|
|
@ -42,12 +42,13 @@ void backlight_set(uint8_t level) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Port from backlight_update_state
|
|
|
|
|
void led_set_kb(uint8_t usb_led) {
|
|
|
|
|
bool led_update_kb(led_t led_state) {
|
|
|
|
|
bool res = led_update_user(led_state);
|
|
|
|
|
if(res) {
|
|
|
|
|
bool status[8] = {
|
|
|
|
|
host_keyboard_leds() & (1<<USB_LED_SCROLL_LOCK), /* LED 3 */
|
|
|
|
|
host_keyboard_leds() & (1<<USB_LED_CAPS_LOCK), /* LED 2 */
|
|
|
|
|
host_keyboard_leds() & (1<<USB_LED_NUM_LOCK), /* LED 1 */
|
|
|
|
|
led_state.scroll_lock, /* LED 3 */
|
|
|
|
|
led_state.caps_lock, /* LED 2 */
|
|
|
|
|
led_state.num_lock, /* LED 1 */
|
|
|
|
|
|
|
|
|
|
layer_state & (1<<2), /* LED 6 */
|
|
|
|
|
layer_state & (1<<1), /* LED 5 */
|
|
|
|
|
@ -58,4 +59,6 @@ void led_set_kb(uint8_t usb_led) {
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
indicator_leds_set(status);
|
|
|
|
|
}
|
|
|
|
|
return res;
|
|
|
|
|
}
|
|
|
|
|
|