diff options
| author | Ralf Kistner <ralf.kistner@gmail.com> | 2013-04-10 23:03:28 +0200 |
|---|---|---|
| committer | Ralf Kistner <ralf.kistner@gmail.com> | 2013-04-10 23:03:28 +0200 |
| commit | 74764f86a1847675200f82d5e8e747d45f47070c (patch) | |
| tree | 75f387d5c9f3b36350193e62847f6d1e481860f7 | |
| parent | 4c377becab19d2a10b3036dd1bc6b7688f914daa (diff) | |
Fix not being able to read MIDI input of less than 4 events.
| -rw-r--r-- | avr/cores/arcore/MIDIUSB.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avr/cores/arcore/MIDIUSB.cpp b/avr/cores/arcore/MIDIUSB.cpp index 74f3320..fcce78d 100644 --- a/avr/cores/arcore/MIDIUSB.cpp +++ b/avr/cores/arcore/MIDIUSB.cpp @@ -105,7 +105,7 @@ int MIDIUSB_::available(void) MIDIEvent MIDIUSB_::peek(void) { - if(this->available() < 4) { + if(this->available() < 1) { return MIDI_EVENT_NONE; } else { midi_buffer *buffer = &(this->_rx_buffer); |
