Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
usb: add print for wakeup
Browse files Browse the repository at this point in the history
  • Loading branch information
benedekkupper committed Oct 27, 2024
1 parent 9ed5790 commit 625d39d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions device/src/usb/usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,14 @@ extern "C" void USB_DisableHid()

extern "C" void USB_RemoteWakeup()
{
usb_manager::instance().mac().queue_task(
[]() { usb_manager::instance().device().remote_wakeup(); });
printk("USB: requesting remote wakeup\n");
usb_manager::instance().mac().queue_task([]() {
if (usb_manager::instance().device().remote_wakeup()) {
printk("USB: sending remote wakeup\n");
} else {
printk("USB: remote wakeup disabled\n");
}
});
}

#if DEVICE_IS_UHK80_RIGHT
Expand Down

0 comments on commit 625d39d

Please sign in to comment.