fix(usb): do not wait for send state

Fixes #4731
This commit is contained in:
raphaelcoeffic
2024-03-30 10:16:40 +11:00
committed by Peter Feerick
parent 088270ee40
commit 06c09579fd
@@ -336,10 +336,6 @@ void usbSerialPutc(void*, uint8_t c)
APP_Tx_ptr_in = (APP_Tx_ptr_in + 1) % APP_TX_DATA_SIZE;
if (!prim) __enable_irq();
/* USER CODE BEGIN 7 */
USBD_CDC_HandleTypeDef *hcdc = (USBD_CDC_HandleTypeDef*)hUsbDeviceFS.pClassData;
while (hcdc->TxState != 0);
/* USER CODE END 7 */
}
/**