From 74764f86a1847675200f82d5e8e747d45f47070c Mon Sep 17 00:00:00 2001 From: Ralf Kistner Date: Wed, 10 Apr 2013 23:03:28 +0200 Subject: Fix not being able to read MIDI input of less than 4 events. --- avr/cores/arcore/MIDIUSB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3