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 committed 2015-07-31 10:37:24 +02:00
1 parent 0db6ed9a71
commit f62b5e1204
8 files changed
+117 -77

No files matched your search

+3 -3
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)) {