plugins/consoles/vt100cons/src/usb/vtc_usb.cpp
changeset 78 6a2083f7eeb8
parent 77 60f47003f4b1
child 82 91da8db1df45
equal deleted inserted replaced
77:60f47003f4b1 78:6a2083f7eeb8
    49 	TRequestStatus stat;
    49 	TRequestStatus stat;
    50 	if (portConfig.iPersonality >= 0)
    50 	if (portConfig.iPersonality >= 0)
    51 		{
    51 		{
    52 		iUsb.TryStart(portConfig.iPersonality, stat);
    52 		iUsb.TryStart(portConfig.iPersonality, stat);
    53 		User::WaitForRequest(stat);
    53 		User::WaitForRequest(stat);
       
    54 		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...
    54 		Message(ErrOrDebug(stat.Int()), _L("Starting USB personality %d returned %d"), portConfig.iPersonality, stat.Int());
    55 		Message(ErrOrDebug(stat.Int()), _L("Starting USB personality %d returned %d"), portConfig.iPersonality, stat.Int());
    55 		}
    56 		}
    56 
    57 
    57 	// Wait for an enumeration that supports ACM (this is so that if the device defaulted to say mass storage and was then reconfigured to a personality with ACM, we wait for the ACM reconfiguration
    58 	// Wait for an enumeration that supports ACM (this is so that if the device defaulted to say mass storage and was then reconfigured to a personality with ACM, we wait for the ACM reconfiguration
    58 	TBool gotAcm = EFalse;
    59 	TBool gotAcm = EFalse;