From 5b4d9cd7d74539a21dd93397a9b9b7a3feb948b1 Mon Sep 17 00:00:00 2001 From: Bertrand Songis Date: Mon, 31 Aug 2015 23:24:59 +0200 Subject: [PATCH] Missing #ifdef --- radio/src/targets/taranis/usbd_cdc.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }