We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1cd5b35 + 33bedf6 commit 3065501Copy full SHA for 3065501
cores/arduino/stm32/usb/cdc/usbd_cdc.c
@@ -886,13 +886,8 @@ uint8_t USBD_CDC_ClearBuffer(USBD_HandleTypeDef *pdev)
886
{
887
/* Suspend or Resume USB Out process */
888
if (pdev->pClassData != NULL) {
889
- if (pdev->dev_speed == USBD_SPEED_HIGH) {
890
- /* Prepare Out endpoint to receive next packet */
891
- USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, 0, 0);
892
- } else {
893
894
895
- }
+ /* Prepare Out endpoint to receive next packet */
+ USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, 0, 0);
896
return USBD_OK;
897
} else {
898
return USBD_FAIL;
0 commit comments