Fix for mouse movement before waking from suspend

pull/7/head
Robert Fisk 8 years ago
parent 0e1dba7c46
commit ae4472bd5d

@ -153,9 +153,7 @@ static void Upstream_HID_ReceiveInterruptReportCallback(UpstreamPacketTypeDef* r
{
if (Upstream_StateMachine_GetSuspendState())
{
//Send wakeup signal to host instead of returning data packet
GetReportCallback = NULL;
Upstream_StateMachine_Wakeup();
Upstream_StateMachine_Wakeup(); //Send wakeup signal to host
}
}
@ -187,9 +185,7 @@ static void Upstream_HID_ReceiveInterruptReportCallback(UpstreamPacketTypeDef* r
if (Upstream_StateMachine_GetSuspendState())
{
//Send wakeup signal to host instead of returning data packet
GetReportCallback = NULL;
Upstream_StateMachine_Wakeup();
Upstream_StateMachine_Wakeup(); //Send wakeup signal to host
}
//Other keyboard sanity checks here...
@ -203,7 +199,8 @@ static void Upstream_HID_ReceiveInterruptReportCallback(UpstreamPacketTypeDef* r
}
if ((GetReportCallback == NULL) ||
(UpstreamHidPacket != NULL))
(UpstreamHidPacket != NULL) ||
(Upstream_StateMachine_GetSuspendState()))
{
Upstream_ReleasePacket(receivedPacket);
}

Loading…
Cancel
Save