Fixed incorrect/missing control status stage transfers on demos, bootloaders and applications (thanks to Nate Lawson).
This commit is contained in:
1 parent
4a09da2098
commit
3803976534
23 files changed
+157
-67
No files matched your search
@@ -193,7 +193,8 @@ EVENT_HANDLER(USB_UnhandledControlPacket)
|
||||
Scheduler_SetTaskMode(USB_Audio_Task, TASK_STOP);
|
||||
}
|
||||
|
||||
/* Handshake the request */
|
||||
/* Acknowledge status stage */
|
||||
while (!(Endpoint_IsSetupINReady()));
|
||||
Endpoint_ClearSetupIN();
|
||||
}
|
||||
|
||||
@@ -249,7 +250,7 @@ TASK(USB_Audio_Task)
|
||||
/* Check to see if the bank is now empty */
|
||||
if (!(Endpoint_ReadWriteAllowed()))
|
||||
{
|
||||
/* Acknowedge the packet, clear the bank ready for the next packet */
|
||||
/* Acknowledge the packet, clear the bank ready for the next packet */
|
||||
Endpoint_ClearCurrentBank();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user