From f43470f20b6a508c52ac0b673f35ffbf2eaa3f67 Mon Sep 17 00:00:00 2001 From: Sam Chesney Date: Mon, 17 Feb 2014 19:46:54 +0000 Subject: [PATCH] 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) --- module_usb_midi/src/usb_midi.xc | 1 + 1 file changed, 1 insertion(+) diff --git a/module_usb_midi/src/usb_midi.xc b/module_usb_midi/src/usb_midi.xc index 658bdb09..3b471c12 100644 --- a/module_usb_midi/src/usb_midi.xc +++ b/module_usb_midi/src/usb_midi.xc @@ -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) {