mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
Change suspend condition check order on ChibiOS (#24020)
This commit is contained in:
parent
e07f752a57
commit
bdca9318f9
|
@ -184,7 +184,7 @@ void protocol_pre_task(void) {
|
||||||
/* Do this in the suspended state */
|
/* Do this in the suspended state */
|
||||||
suspend_power_down(); // on AVR this deep sleeps for 15ms
|
suspend_power_down(); // on AVR this deep sleeps for 15ms
|
||||||
/* Remote wakeup */
|
/* Remote wakeup */
|
||||||
if ((USB_DRIVER.status & USB_GETSTATUS_REMOTE_WAKEUP_ENABLED) && suspend_wakeup_condition()) {
|
if (suspend_wakeup_condition() && (USB_DRIVER.status & USB_GETSTATUS_REMOTE_WAKEUP_ENABLED)) {
|
||||||
usbWakeupHost(&USB_DRIVER);
|
usbWakeupHost(&USB_DRIVER);
|
||||||
# if USB_SUSPEND_WAKEUP_DELAY > 0
|
# if USB_SUSPEND_WAKEUP_DELAY > 0
|
||||||
// Some hubs, kvm switches, and monitors do
|
// Some hubs, kvm switches, and monitors do
|
||||||
|
|
Loading…
Reference in a new issue