Missing #ifdef

This commit is contained in:
Bertrand Songis
2015-08-31 23:24:59 +02:00
parent 6ae59ab67c
commit 5b4d9cd7d7
+3
View File
@@ -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;
}