Fixed Endpoint_Write_Control_* functions writing more data than expected by the host, causing it to panic (thanks to Johannes Raschke).
This commit is contained in:
parent
13935a31b9
commit
6a8e27f7ee
4 changed files with 37 additions and 30 deletions
|
@ -350,7 +350,7 @@ static void WriteNextResponseByte(const uint8_t Response)
|
|||
/* Select the IN endpoint so that the next data byte can be written */
|
||||
Endpoint_SelectEndpoint(CDC_TX_EPNUM);
|
||||
|
||||
/* If OUT endpoint empty, clear it and wait for the next packet from the host */
|
||||
/* If IN endpoint full, clear it and wait util ready for the next packet to the host */
|
||||
if (!(Endpoint_IsReadWriteAllowed()))
|
||||
{
|
||||
Endpoint_ClearIN();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue