mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
LP-602 bugfix in STM32_USB_OTG_Driver to prevent IRQ hammering on USB replug
This commit is contained in:
parent
aba11f0e10
commit
6ab58fe93d
@ -681,7 +681,7 @@ static uint32_t DCD_WriteEmptyTxFifo(USB_OTG_CORE_HANDLE *pdev, uint32_t epnum)
|
||||
}
|
||||
// --- start fix
|
||||
uint32_t fifoemptymsk;
|
||||
if (len < ep->maxpacket)
|
||||
if (len <= ep->maxpacket)
|
||||
{
|
||||
// FIFO empty
|
||||
fifoemptymsk = 0x1 << epnum;
|
||||
|
Loading…
x
Reference in New Issue
Block a user