Skip to content

Commit

Permalink
Align LUFA suspend logic (qmk#24055)
Browse files Browse the repository at this point in the history
  • Loading branch information
zvecr authored and sqrtnull committed Oct 22, 2024
1 parent 58cc704 commit 26865c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmk_core/protocol/lufa/lufa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 26865c9

Please sign in to comment.