Skip to content

Commit 3065501

Browse files
authored
Merge branch 'master' into receive_double_buffering_for_f1
2 parents 1cd5b35 + 33bedf6 commit 3065501

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cores/arduino/stm32/usb/cdc/usbd_cdc.c

+2-7
Original file line numberDiff line numberDiff line change
@@ -886,13 +886,8 @@ uint8_t USBD_CDC_ClearBuffer(USBD_HandleTypeDef *pdev)
886886
{
887887
/* Suspend or Resume USB Out process */
888888
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-
/* Prepare Out endpoint to receive next packet */
894-
USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, 0, 0);
895-
}
889+
/* Prepare Out endpoint to receive next packet */
890+
USBD_LL_PrepareReceive(pdev, CDC_OUT_EP, 0, 0);
896891
return USBD_OK;
897892
} else {
898893
return USBD_FAIL;

0 commit comments

Comments
 (0)