From dda14805a125cd6a11dec4856c9f9e3b7da5fcdf Mon Sep 17 00:00:00 2001 From: lokher Date: Sun, 28 Apr 2024 12:20:19 +0800 Subject: [PATCH] Fixed gpio controlled caps lock LED is cleared incorrectly in wireless mode after factory reset --- keyboards/keychron/common/wireless/wireless.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/keyboards/keychron/common/wireless/wireless.c b/keyboards/keychron/common/wireless/wireless.c index cf3c53456d..d9c0d3fd2b 100644 --- a/keyboards/keychron/common/wireless/wireless.c +++ b/keyboards/keychron/common/wireless/wireless.c @@ -244,7 +244,8 @@ static void wireless_enter_disconnected(uint8_t host_idx) { uint8_t previous_state = wireless_state; led_state = 0; - led_update_kb((led_t)led_state); + if (get_transport() & TRANSPORT_WIRELESS) + led_update_kb((led_t)led_state); wireless_state = WT_DISCONNECTED;