CHG: testing for windows clients to get a higher baudrate. Was 9600, testing 115200 as for non_win.

CHG: testing to set USB 2.0 standard,  instead of USB1.1  ...
This commit is contained in:
iceman1001 2016-03-21 22:05:59 +01:00
parent 4bf0f73d76
commit 0fcfad0ee6
2 changed files with 3 additions and 2 deletions

View file

@ -369,7 +369,7 @@ serial_port uart_open(const char* pcPortName) {
// Prepare the device control
memset(&sp->dcb, 0, sizeof(DCB));
sp->dcb.DCBlength = sizeof(DCB);
if(!BuildCommDCBA("baud=9600 data=8 parity=N stop=1",&sp->dcb)) {
if(!BuildCommDCBA("baud=115200 parity=N data=8 stop=1",&sp->dcb)) {
uart_close(sp);
return INVALID_SERIAL_PORT;
}

View file

@ -46,7 +46,8 @@ const char devDescriptor[] = {
/* Device descriptor */
0x12, // bLength
0x01, // bDescriptorType
0x10,0x01, // Complies with USB Spec. Release (0110h = release 1.10)
//0x10,0x01, // Complies with USB Spec. Release (0110h = release 1.10)
0x00,0x02, // Complies with USB Spec. Release (0110h = release 2.00)
0x02, // bDeviceClass: CDC class code
0x00, // bDeviceSubclass: CDC class sub code
0x00, // bDeviceProtocol: CDC Device protocol