Get rid of USB_LED_NUM_LOCK
(#21424)
This commit is contained in:
parent
7ff80a57cb
commit
9ab16e62f7
25 changed files with 91 additions and 133 deletions
|
@ -266,10 +266,10 @@ void render_status(void) {
|
|||
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
|
||||
uint8_t led_usb_state = host_keyboard_leds();
|
||||
led_t led_state = host_keyboard_led_state();
|
||||
oled_write_P(PSTR("Mode:"), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_NUM_LOCK) ? PSTR(" NUM ") : PSTR("\n"), false);
|
||||
oled_write_P(IS_LED_ON(led_usb_state, USB_LED_CAPS_LOCK) ? PSTR(" CAPS") : PSTR("\n"), false);
|
||||
oled_write_P(led_state.num_lock ? PSTR(" NUM ") : PSTR("\n"), false);
|
||||
oled_write_P(led_state.caps_lock ? PSTR(" CAPS") : PSTR("\n"), false);
|
||||
|
||||
# ifdef RGB_MATRIX_ENABLE
|
||||
oled_write_P(PSTR("\n"), false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue