Fix "unable to configure serial port" Windows Error
As per I've added in support for line coding which appears to fix serial on Windows 10.
@@ -225,12 +225,14 @@ static int8_t CDC_Control_HS(uint8_t cmd, uint8_t* pbuf, uint16_t length)
/* 4 - Space */
/* 6 | bDataBits | 1 | Number Data bits (5, 6, 7, 8 or 16). */
/*******************************************************************************/
+ static uint8_t lineCoding[7] // 115200bps, 1stop, no parity, 8bit
+ = { 0x00, 0xC2, 0x01, 0x00, 0x00, 0x00, 0x08 };
case CDC_SET_LINE_CODING:
-
+ memcpy(lineCoding, pbuf, sizeof(lineCoding));
break;
case CDC_GET_LINE_CODING:
-
+ memcpy(pbuf, lineCoding, sizeof(lineCoding));
break;
case CDC_SET_CONTROL_LINE_STATE:
