1
0
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:
Eric Price 2018-10-12 15:54:58 +02:00
parent aba11f0e10
commit 6ab58fe93d

View File

@ -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;