diff --git a/radio/src/targets/taranis/usbd_cdc.cpp b/radio/src/targets/taranis/usbd_cdc.cpp index 7cb2d061a..7b1a44634 100644 --- a/radio/src/targets/taranis/usbd_cdc.cpp +++ b/radio/src/targets/taranis/usbd_cdc.cpp @@ -206,11 +206,14 @@ static uint16_t VCP_DataRx (uint8_t* Buf, uint32_t Len) // available characters, return VCP_FAIL. Maybe that will throttle down // the sender and we will receive the same packet at a later time. +#if defined(CLI) //copy data to the application FIFO for (uint32_t i = 0; i < Len; i++) { cliRxFifo.push(Buf[i]); } +#endif + return USBD_OK; }