usb_cdc: fix WFI
@@ -182,14 +182,14 @@ static uint16_t VCP_DataTx(uint8_t *Buf, uint32_t Len) {
*/
while (CDC_Send_FreeBytes() == 0 || USB_Tx_State != 0)
- __WFI;
+ __WFI();
for (uint32_t i = 0; i < Len; i++) {
APP_Rx_Buffer[APP_Rx_ptr_in] = Buf[i];
APP_Rx_ptr_in = (APP_Rx_ptr_in + 1) % APP_RX_DATA_SIZE;
while (CDC_Send_FreeBytes() == 0 || USB_Tx_State != 0)
- __WFI;
+ __WFI();
}
return USBD_OK;
