added @piwi 's usb speed test.

.. found out that my usb speed is really slow.  Started to look for reasons. Have a win7 64 env, running on a vmware image.
This commit is contained in:
iceman1001
2015-07-31 10:37:24 +02:00
parent 0db6ed9a71
commit f62b5e1204
8 changed files with 117 additions and 77 deletions

View File

@@ -370,9 +370,9 @@ serial_port uart_open(const char* pcPortName) {
memset(&sp->dcb, 0, sizeof(DCB));
sp->dcb.DCBlength = sizeof(DCB);
if(!BuildCommDCBA("baud=9600 data=8 parity=N stop=1",&sp->dcb)) {
uart_close(sp);
return INVALID_SERIAL_PORT;
}
uart_close(sp);
return INVALID_SERIAL_PORT;
}
// Update the active serial port
if(!SetCommState(sp->hPort,&sp->dcb)) {