mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2025-01-07 17:40:19 +06:00
Fixed mode switch doesn't work on some charger
This commit is contained in:
parent
e073a2b412
commit
bc57b3da30
@ -236,6 +236,11 @@ void transport_changed(transport_t new_transport) {
|
||||
void usb_remote_wakeup(void) {
|
||||
if (USB_DRIVER.state == USB_SUSPENDED) {
|
||||
while (USB_DRIVER.state == USB_SUSPENDED) {
|
||||
wireless_pre_task();
|
||||
if (get_transport() != TRANSPORT_USB) {
|
||||
suspend_wakeup_init_quantum();
|
||||
return;
|
||||
}
|
||||
/* Do this in the suspended state */
|
||||
suspend_power_down(); // on AVR this deep sleeps for 15ms
|
||||
/* Remote wakeup */
|
||||
|
@ -236,6 +236,11 @@ void transport_changed(transport_t new_transport) {
|
||||
void usb_remote_wakeup(void) {
|
||||
if (USB_DRIVER.state == USB_SUSPENDED) {
|
||||
while (USB_DRIVER.state == USB_SUSPENDED) {
|
||||
wireless_pre_task();
|
||||
if (get_transport() != TRANSPORT_USB) {
|
||||
suspend_wakeup_init_quantum();
|
||||
return;
|
||||
}
|
||||
/* Do this in the suspended state */
|
||||
suspend_power_down(); // on AVR this deep sleeps for 15ms
|
||||
/* Remote wakeup */
|
||||
|
Loading…
Reference in New Issue
Block a user