trigger callback once byte event

This commit is contained in:
hathach committed 2017-03-18 17:00:19 +07:00
1 parent 7a057bbad0
commit a6f1318f3e
1 file changed
+3 -2
@@ -194,10 +194,11 @@ void BLEMidi::_write_handler(uint8_t* data, uint16_t len)
// write the status or MIDI data to the FIFO
_rxd_fifo.write(data++, 1);
len--;
if ( _write_cb ) _write_cb();
}
// Call write callback if configured
if ( _write_cb ) _write_cb();
#ifdef MIDI_LIB_INCLUDED
// read while possible if configured
if ( _midilib_obj )