Check correct interrupt flag

Fixes #1737
This commit is contained in:
Michiel van Leeuwen
2023-04-28 11:39:39 +02:00
parent 5ade917805
commit 678edbe203

View File

@@ -1322,7 +1322,7 @@ void dcd_int_handler(uint8_t rhport)
do
{
handle_rxflvl_irq(rhport);
} while(dwc2->gotgint & GINTSTS_RXFLVL);
} while(dwc2->gintsts & GINTSTS_RXFLVL);
// Manage RX FIFO size
if (_out_ep_closed)