Skip to content

Commit

Permalink
fix(usb): do not wait for send state
Browse files Browse the repository at this point in the history
Fixes #4731
  • Loading branch information
raphaelcoeffic committed Mar 29, 2024
1 parent a5a1980 commit 1da4c4b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions radio/src/targets/common/arm/stm32/usbd_cdc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
}

/**
Expand Down

0 comments on commit 1da4c4b

Please sign in to comment.