Quick hack for timing issue with USB enumeration.
authorTom Sutcliffe <thomas.sutcliffe@accenture.com>
Mon, 20 Sep 2010 16:46:34 +0100
changeset 63 6a2083f7eeb8
parent 62 60f47003f4b1
child 64 72ffa331d78d
child 66 2a78c4ff2eab
Quick hack for timing issue with USB enumeration.
plugins/consoles/vt100cons/src/usb/vtc_usb.cpp
--- a/plugins/consoles/vt100cons/src/usb/vtc_usb.cpp	Mon Sep 20 15:37:51 2010 +0100
+++ b/plugins/consoles/vt100cons/src/usb/vtc_usb.cpp	Mon Sep 20 16:46:34 2010 +0100
@@ -51,6 +51,7 @@
 		{
 		iUsb.TryStart(portConfig.iPersonality, stat);
 		User::WaitForRequest(stat);
+		User::After(500000); // Ugh need to wait for the TryStart to finish. There's probably some other async notification I could wait on but I'm in a hurry to get this working...
 		Message(ErrOrDebug(stat.Int()), _L("Starting USB personality %d returned %d"), portConfig.iPersonality, stat.Int());
 		}