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:
parent
535b53cb1c
commit
1016b08b70
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user