Get rid of USB_LED_NUM_LOCK (#21424)

This commit is contained in:
Ryan 2023-07-03 04:35:41 +10:00 committed by GitHub
parent 7ff80a57cb
commit 9ab16e62f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 91 additions and 133 deletions

View file

@ -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);