Skip to content

Commit f6d051a

Browse files
committed
Fix interupt EP tranfer len issue
1 parent 3672be0 commit f6d051a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/targets/TARGET_STM/USBHALHost_STM.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ void HAL_HCD_HC_NotifyURBChange_Callback(HCD_HandleTypeDef *pHcd, uint8_t uChann
121121
// TOD: really this retransfer should be queued up and transfered on the SOF interupt based on interval from descriptor.
122122
pTransferDescriptor->state = USB_TYPE_IDLE ;
123123
HAL_HCD_DisableInt(pHcd, uChannel);
124+
pTransferDescriptor->currBufPtr += HAL_HCD_HC_GetXferCount(pHcd, uChannel);
124125
}
125126
else if ((endpointType == EP_TYPE_BULK) || (endpointType == EP_TYPE_CTRL))
126127
{

0 commit comments

Comments
 (0)