Skip to content

Commit

Permalink
simplified code around REMOTE_WAKEUP for USB
Browse files Browse the repository at this point in the history
  • Loading branch information
jpconstantineau committed Mar 13, 2022
1 parent 8f1dd50 commit 229beff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hid_queues.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,8 @@ void HID_Queues::clearGamepadQueue()
void HID_Queues::processQueuesWithUSB()
{
// Remote wakeup
if (( TinyUSBDevice.suspended() && ((!isMouseQueueEmpty()) || (!isKeyboardQueueEmpty()) || (!isConsumerQueueEmpty())) ))
//if (( TinyUSBDevice.suspended() && ((!isMouseQueueEmpty()) || (!isKeyboardQueueEmpty()) || (!isConsumerQueueEmpty())) ))
if ( TinyUSBDevice.suspended())
{
// Wake up host if we are in suspend mode
// and REMOTE_WAKEUP feature is enabled by host
Expand Down

0 comments on commit 229beff

Please sign in to comment.