fix USB buffer drop char error

This commit is contained in:
Oskar Weigl
2017-10-17 17:28:35 -07:00
parent 65dfeb1602
commit 7dc6a464f4
+1 -1
View File
@@ -275,7 +275,7 @@ static int8_t CDC_Receive_FS (uint8_t* Buf, uint32_t *Len)
int null_idx = MACRO_MIN(*Len, APP_RX_DATA_SIZE-1);
Buf[null_idx] = 0;
motor_parse_cmd(Buf, *Len);
motor_parse_cmd(Buf, *Len+1);
return (USBD_OK);
/* USER CODE END 6 */