Fix DSTS_FNSOF in dwc2.c

This commit is contained in:
Reinhard Panhuber 2022-03-16 07:53:47 +01:00
parent 92ac041869
commit 9fde8f2d9e

View File

@ -1276,7 +1276,7 @@ void dcd_int_handler(uint8_t rhport)
if (_sof_en) if (_sof_en)
{ {
uint32_t frame = (dwc2->dsts & (USB_OTG_DSTS_FNSOF)) >> 8; uint32_t frame = (dwc2->dsts & (DSTS_FNSOF)) >> 8;
dcd_event_sof(rhport, frame, true); dcd_event_sof(rhport, frame, true);
} }
else else