Skip to content

Commit 229beff

Browse files
simplified code around REMOTE_WAKEUP for USB
1 parent 8f1dd50 commit 229beff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hid_queues.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ void HID_Queues::clearGamepadQueue()
288288
void HID_Queues::processQueuesWithUSB()
289289
{
290290
// Remote wakeup
291-
if (( TinyUSBDevice.suspended() && ((!isMouseQueueEmpty()) || (!isKeyboardQueueEmpty()) || (!isConsumerQueueEmpty())) ))
291+
//if (( TinyUSBDevice.suspended() && ((!isMouseQueueEmpty()) || (!isKeyboardQueueEmpty()) || (!isConsumerQueueEmpty())) ))
292+
if ( TinyUSBDevice.suspended())
292293
{
293294
// Wake up host if we are in suspend mode
294295
// and REMOTE_WAKEUP feature is enabled by host

0 commit comments

Comments
 (0)