فهرست منبع

Merge remote-tracking branch 'origin/develop' into xap

QMK Bot 2 سال پیش
والد
کامیت
d88eda5b37
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      tmk_core/protocol/lufa/lufa.c

+ 1 - 1
tmk_core/protocol/lufa/lufa.c

@@ -945,7 +945,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();