baa29fef9d07b9279fe46837848eeacd47282f45

Author
Drashna Jaelre <drashna@live.com>
Committer
GitHub <noreply@github.com>
Date

Message

[Bug] Fix compiliation issues with OS Detection (#24502)

Diff

 1diff --git a/quantum/os_detection.c b/quantum/os_detection.c
 2index 4196b3ec8a93f3cf66377354013f2a03b0fb6d92..0dd048a8c47233d1200396bf354f06ba2fd261d4 100644
 3--- a/quantum/os_detection.c
 4+++ b/quantum/os_detection.c
 5@@ -76,7 +76,7 @@ void os_detection_task(void) {
 6 #ifdef OS_DETECTION_KEYBOARD_RESET
 7     // resetting the keyboard on the USB device state change callback results in instability, so delegate that to this task
 8     // only take action if it's been stable at least once, to avoid issues with some KVMs
 9-    if (current_usb_device_state <= USB_DEVICE_STATE_INIT && maxprev_usb_device_state >= USB_DEVICE_STATE_CONFIGURED) {
10+    if (current_usb_device_state.configure_state <= USB_DEVICE_STATE_INIT && maxprev_usb_device_state.configure_state >= USB_DEVICE_STATE_CONFIGURED) {
11         if (debouncing && timer_elapsed_fast(last_time) >= OS_DETECTION_DEBOUNCE) {
12             soft_reset_keyboard();
13         }