Revert "Fix EP0 receiving more packets."

This reverts commit 3507027e98.

--

Thanks to Jeremy Drake to catch this questionable change.

While the value LEN is used for drivers for other machines to prepare
receiving buffer in hardware USB core, it is not used in STM32F103
which has dedicated hardware memory in the USB core.
This commit is contained in:
NIIBE Yutaka
2020-01-06 09:58:10 +09:00
parent 22fc473eb5
commit 86d805620c

View File

@@ -864,8 +864,6 @@ usb_lld_ctrl_recv (struct usb_dev *dev, void *p, size_t len)
struct ctrl_data *data_p = &dev->ctrl_data;
data_p->addr = p;
data_p->len = len;
if (len > USB_MAX_PACKET_SIZE)
len = USB_MAX_PACKET_SIZE;
dev->state = OUT_DATA;
ep_set_rx_status (ENDP0, EP_RX_VALID);
return USB_EVENT_OK;