Explorar o código

Make MIDI output endpoint use the out direction (#18654)

nezumee %!s(int64=2) %!d(string=hai) anos
pai
achega
d6d6cdcb4f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tmk_core/protocol/lufa/lufa.c

+ 1 - 1
tmk_core/protocol/lufa/lufa.c

@@ -422,7 +422,7 @@ void EVENT_USB_Device_ConfigurationChanged(void) {
 #ifdef MIDI_ENABLE
 #ifdef MIDI_ENABLE
     /* Setup MIDI stream endpoints */
     /* Setup MIDI stream endpoints */
     ConfigSuccess &= Endpoint_ConfigureEndpoint((MIDI_STREAM_IN_EPNUM | ENDPOINT_DIR_IN), EP_TYPE_BULK, MIDI_STREAM_EPSIZE, 1);
     ConfigSuccess &= Endpoint_ConfigureEndpoint((MIDI_STREAM_IN_EPNUM | ENDPOINT_DIR_IN), EP_TYPE_BULK, MIDI_STREAM_EPSIZE, 1);
-    ConfigSuccess &= Endpoint_ConfigureEndpoint((MIDI_STREAM_OUT_EPNUM | ENDPOINT_DIR_IN), EP_TYPE_BULK, MIDI_STREAM_EPSIZE, 1);
+    ConfigSuccess &= Endpoint_ConfigureEndpoint((MIDI_STREAM_OUT_EPNUM | ENDPOINT_DIR_OUT), EP_TYPE_BULK, MIDI_STREAM_EPSIZE, 1);
 #endif
 #endif
 
 
 #ifdef VIRTSER_ENABLE
 #ifdef VIRTSER_ENABLE