aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDrashna Jaelre <[email protected]>2024-10-19 03:24:42 -0700
committerGitHub <[email protected]>2024-10-19 12:24:42 +0200
commitbaa29fef9d07b9279fe46837848eeacd47282f45 (patch)
treeaaa2c13a317fa4f35250a6c4502c8f7b897478cc /quantum
parent22e6a8d15e2a5b6afd804413595bfeeab941ea1b (diff)
downloadqmk_firmware-baa29fef9d07b9279fe46837848eeacd47282f45.tar.gz
qmk_firmware-baa29fef9d07b9279fe46837848eeacd47282f45.zip
[Bug] Fix compiliation issues with OS Detection (#24502)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/os_detection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/os_detection.c b/quantum/os_detection.c
index 4196b3ec8a..0dd048a8c4 100644
--- a/quantum/os_detection.c
+++ b/quantum/os_detection.c
@@ -76,7 +76,7 @@ void os_detection_task(void) {
#ifdef OS_DETECTION_KEYBOARD_RESET
// resetting the keyboard on the USB device state change callback results in instability, so delegate that to this task
// only take action if it's been stable at least once, to avoid issues with some KVMs
- if (current_usb_device_state <= USB_DEVICE_STATE_INIT && maxprev_usb_device_state >= USB_DEVICE_STATE_CONFIGURED) {
+ if (current_usb_device_state.configure_state <= USB_DEVICE_STATE_INIT && maxprev_usb_device_state.configure_state >= USB_DEVICE_STATE_CONFIGURED) {
if (debouncing && timer_elapsed_fast(last_time) >= OS_DETECTION_DEBOUNCE) {
soft_reset_keyboard();
}