summaryrefslogtreecommitdiff
path: root/tmk_core/protocol
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2024-07-03 19:13:00 -0700
committerGitHub <noreply@github.com>2024-07-04 12:13:00 +1000
commitbdca9318f9f6a7b4ea697113a2e0b3117a67e093 (patch)
treeac58d33f1ccf1e2aaa25d8e122b10809902a8c8b /tmk_core/protocol
parente07f752a5704640052963ff7777bd3b87a429f6f (diff)
Change suspend condition check order on ChibiOS (#24020)
Diffstat (limited to 'tmk_core/protocol')
-rw-r--r--tmk_core/protocol/chibios/chibios.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/protocol/chibios/chibios.c b/tmk_core/protocol/chibios/chibios.c
index a249af8d38..b879bdac77 100644
--- a/tmk_core/protocol/chibios/chibios.c
+++ b/tmk_core/protocol/chibios/chibios.c
@@ -184,7 +184,7 @@ void protocol_pre_task(void) {
184 /* Do this in the suspended state */ 184 /* Do this in the suspended state */
185 suspend_power_down(); // on AVR this deep sleeps for 15ms 185 suspend_power_down(); // on AVR this deep sleeps for 15ms
186 /* Remote wakeup */ 186 /* Remote wakeup */
187 if ((USB_DRIVER.status & USB_GETSTATUS_REMOTE_WAKEUP_ENABLED) && suspend_wakeup_condition()) { 187 if (suspend_wakeup_condition() && (USB_DRIVER.status & USB_GETSTATUS_REMOTE_WAKEUP_ENABLED)) {
188 usbWakeupHost(&USB_DRIVER); 188 usbWakeupHost(&USB_DRIVER);
189# if USB_SUSPEND_WAKEUP_DELAY > 0 189# if USB_SUSPEND_WAKEUP_DELAY > 0
190 // Some hubs, kvm switches, and monitors do 190 // Some hubs, kvm switches, and monitors do