1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

f4 usb: removed DCD_EP_Flush on endpoint TX

This has probably caused the problem that prevented tx after
a bus reconnection.
This commit is contained in:
lilvinz 2013-01-31 23:00:32 +01:00 committed by Alessio Morale
parent 535b53cb1c
commit 1016b08b70

View File

@ -399,9 +399,6 @@ static uint8_t PIOS_USBHOOK_CLASS_EP0_RxReady(__attribute__((unused)) void *pdev
static uint8_t PIOS_USBHOOK_CLASS_DataIn(void *pdev, uint8_t epnum)
{
/* Make sure the previous transfer has completed before starting a new one */
DCD_EP_Flush(pdev, epnum); /* NOT SURE IF THIS IS REQUIRED */
/* Remove the direction bit so we can use this as an index */
uint8_t epnum_idx = epnum & 0x7F;