Skip to content

Commit 275a8a4

Browse files
committed
Adds missing Transport methods
1 parent be4d31c commit 275a8a4

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

libraries/Bluefruit52Lib/src/services/BLEMidi.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@ err_t BLEMidi::begin(void)
160160

161161
return ERROR_NONE;
162162
}
163+
164+
bool BLEMidi::beginTransmission(MIDI_NAMESPACE::MidiType type)
165+
{
166+
return true;
167+
};
168+
169+
void BLEMidi::endTransmission()
170+
{
171+
}
163172

164173
/*------------------------------------------------------------------*/
165174
/* Callbacks

libraries/Bluefruit52Lib/src/services/BLEMidi.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@
3535
#ifndef BLEMIDI_H_
3636
#define BLEMIDI_H_
3737

38+
#include <MIDI.h>
39+
3840
#include "bluefruit_common.h"
3941
#include "utility/adafruit_fifo.h"
4042

@@ -74,6 +76,9 @@ class BLEMidi: public BLEService, public Stream
7476
void setWriteCallback(midi_write_cb_t fp);
7577
void autoMIDIread(void* midi_obj);
7678

79+
bool beginTransmission(MIDI_NAMESPACE::MidiType type);
80+
void endTransmission();
81+
7782
// Stream API for MIDI Interface
7883
virtual int read ( void );
7984
virtual size_t write ( uint8_t b );

0 commit comments

Comments
 (0)