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 25, 2024
1 parent fa0d928 commit d81df7b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions device/src/usb/usb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,13 @@ extern "C" void USB_DisableHid()

extern "C" void USB_RemoteWakeup()
{
usb_manager::instance().mac().queue_task(
[]() { usb_manager::instance().device().remote_wakeup(); });
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 d81df7b

Please sign in to comment.