From 1da4c4b0b34787fe8ef9ea9993729e6dc38c5e05 Mon Sep 17 00:00:00 2001 From: raphaelcoeffic <1050031+raphaelcoeffic@users.noreply.github.com> Date: Fri, 29 Mar 2024 09:11:10 +0100 Subject: [PATCH] fix(usb): do not wait for send state Fixes #4731 --- radio/src/targets/common/arm/stm32/usbd_cdc.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/radio/src/targets/common/arm/stm32/usbd_cdc.cpp b/radio/src/targets/common/arm/stm32/usbd_cdc.cpp index 958918784e6..10eb09c9714 100644 --- a/radio/src/targets/common/arm/stm32/usbd_cdc.cpp +++ b/radio/src/targets/common/arm/stm32/usbd_cdc.cpp @@ -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 */ } /**