CDC interface reports sensible baud rate to host

This commit is contained in:
Oskar Weigl
2018-02-12 22:07:22 -08:00
parent e4a8f05d74
commit f6cb9585ba
+8 -2
View File
@@ -229,8 +229,14 @@ static int8_t CDC_Control_FS (uint8_t cmd, uint8_t* pbuf, uint16_t length)
break;
case CDC_GET_LINE_CODING:
case CDC_GET_LINE_CODING:
pbuf[0] = (uint8_t)(115200);
pbuf[1] = (uint8_t)(115200 >> 8);
pbuf[2] = (uint8_t)(115200 >> 16);
pbuf[3] = (uint8_t)(115200 >> 24);
pbuf[4] = 0; // stop bits (1)
pbuf[5] = 0; // parity (none)
pbuf[6] = 8; // number of bits (8)
break;
case CDC_SET_CONTROL_LINE_STATE: