Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for MIDI RX bug #1

Merged
merged 1 commit into from
Apr 4, 2013
Merged

Fix for MIDI RX bug #1

merged 1 commit into from
Apr 4, 2013

Conversation

fbbdev
Copy link
Contributor

@fbbdev fbbdev commented Apr 3, 2013

The MIDIUSB class was trying to receive data from CDC_RX endpoint instead of MIDI_RX endpoint. Probably you forgot to change it when you copied CDC source. :)

@@ -630,7 +630,9 @@ void USB_Flush(u8 ep)
Serial.accept();
#endif
#ifdef MIDI_ENABLED
MIDIUSB.accept();
USB_Flush(MIDI_TX);
if (USB_Available(MIDI_RX))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this to check if there is something to read before calling accept, as CDC code does

@rkistner
Copy link
Owner

rkistner commented Apr 4, 2013

Thanks - I missed that one, and I haven't properly tested the MIDI receive functionality yet (at the moment I only use it to send MIDI messages from the Arduino to the PC).

rkistner added a commit that referenced this pull request Apr 4, 2013
@rkistner rkistner merged commit 4c377be into rkistner:master Apr 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants