Fixed gpio controlled caps lock LED is cleared incorrectly in wireless mode after factory reset

This commit is contained in:
lokher 2024-04-28 12:20:19 +08:00
parent 6aa63c3c63
commit dda14805a1

View File

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