Remove IS_HOST_LED_ON and migrate usages (#19753)

This commit is contained in:
Ryan authored and GitHub committed 2023-02-06 02:36:09 +00:00
1 parent d5e622b979
commit f0618a1d53
37 files changed
+94 -80

No files matched your search

+1 -1
View File
@@ -212,7 +212,7 @@ uint16_t get_tapping_term(uint16_t keycode, keyrecord_t *record) {
// Turn on/off NUM LOCK if current state is different
void activate_numlock(bool turn_on) {
if (IS_HOST_LED_ON(USB_LED_NUM_LOCK) != turn_on) {
if (host_keyboard_led_state().num_lock != turn_on) {
tap_code(KC_NUM_LOCK);
}
}