Explicitly select the PC connector to begin with (as connections to the USB B cannot actively be detected) for designs where the USB B is selected by driving the switch high (#13887)

This commit is contained in:
Sam Chesney
2014-02-17 19:46:54 +00:00
parent e3905ae3a4
commit f43470f20b

View File

@@ -129,6 +129,7 @@ void usb_midi(buffered in port:1 ?p_midi_in, port ?p_midi_out,
#ifdef IAP
iAPTimer :> polltime;
polltime += XS1_TIMER_HZ / 2;
SelectUSBPc(); // Select the PC connector to begin with, as we cannot actively detect connections to the USB B
#endif
while (1)
{