drivers: usb_dc_stm32: do not restrict out stage transfers to one MPS

Do not restrict control out stage transfers to one MPS.

Signed-off-by: Johann Fischer <j.fischer@phytec.de>
This commit is contained in:
Johann Fischer 2019-11-20 10:09:49 +01:00 committed by Carles Cufí
commit d4ba8fff66

View file

@ -807,7 +807,7 @@ int usb_dc_ep_read_continue(u8_t ep)
/* If no more data in the buffer, start a new read transaction. /* If no more data in the buffer, start a new read transaction.
* DataOutStageCallback will called on transaction complete. * DataOutStageCallback will called on transaction complete.
*/ */
if (ep != EP0_OUT && !ep_state->read_count) { if (!ep_state->read_count) {
usb_dc_ep_start_read(ep, usb_dc_stm32_state.ep_buf[EP_IDX(ep)], usb_dc_ep_start_read(ep, usb_dc_stm32_state.ep_buf[EP_IDX(ep)],
EP_MPS); EP_MPS);
} }