aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Kistner <ralf.kistner@gmail.com>2013-04-10 23:03:28 +0200
committerRalf Kistner <ralf.kistner@gmail.com>2013-04-10 23:03:28 +0200
commit74764f86a1847675200f82d5e8e747d45f47070c (patch)
tree75f387d5c9f3b36350193e62847f6d1e481860f7
parent4c377becab19d2a10b3036dd1bc6b7688f914daa (diff)
Fix not being able to read MIDI input of less than 4 events.
-rw-r--r--avr/cores/arcore/MIDIUSB.cpp2
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);