1
0
Fork 0

Get rid of USB_LED_SCROLL_LOCK (#21405)

This commit is contained in:
Ryan 2023-07-03 04:24:22 +10:00 committed by GitHub
parent 9dbad1fa5c
commit 7ff80a57cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 399 additions and 479 deletions

View file

@ -302,8 +302,9 @@ void matrix_init_user(void) {
#endif
}
void led_set_user(uint8_t usb_led) {
lock_led_set(usb_led & (1<<USB_LED_NUM_LOCK), LED_NUM_LOCK);
lock_led_set(usb_led & (1<<USB_LED_CAPS_LOCK), LED_CAPS_LOCK);
lock_led_set(usb_led & (1<<USB_LED_SCROLL_LOCK), LED_SCROLL_LOCK);
bool led_update_user(led_t led_state) {
lock_led_set(led_state.num_lock, LED_NUM_LOCK);
lock_led_set(led_state.caps_lock, LED_CAPS_LOCK);
lock_led_set(led_state.scroll_lock, LED_SCROLL_LOCK);
return false;
}