aboutsummaryrefslogtreecommitdiff
path: root/tmk_core
diff options
context:
space:
mode:
authorJoel Challis <[email protected]>2024-07-05 12:02:39 +0100
committerGitHub <[email protected]>2024-07-05 12:02:39 +0100
commitd0e89aeccada3f0df906dd4ff8fa7708b0d8234e (patch)
tree8ebbbeb15086f4416175344b40ecf95e098ce142 /tmk_core
parentecf5b26ff0a8c2c10c2f201fcf9d6bbff299b7a0 (diff)
downloadqmk_firmware-d0e89aeccada3f0df906dd4ff8fa7708b0d8234e.tar.gz
qmk_firmware-d0e89aeccada3f0df906dd4ff8fa7708b0d8234e.zip
Align LUFA suspend logic (#24055)
Diffstat (limited to 'tmk_core')
-rw-r--r--tmk_core/protocol/lufa/lufa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c
index 2142b04460..b0c9758d2f 100644
--- a/tmk_core/protocol/lufa/lufa.c
+++ b/tmk_core/protocol/lufa/lufa.c
@@ -836,7 +836,7 @@ void protocol_pre_task(void) {
dprintln("suspending keyboard");
while (USB_DeviceState == DEVICE_STATE_Suspended) {
suspend_power_down();
- if (USB_Device_RemoteWakeupEnabled && suspend_wakeup_condition()) {
+ if (suspend_wakeup_condition() && USB_Device_RemoteWakeupEnabled) {
USB_Device_SendRemoteWakeup();
clear_keyboard();