don't use managed buffer (#4)
This commit is contained in:
Родитель
0d8bdd77c1
Коммит
0f53e64eaf
6
midi.cpp
6
midi.cpp
|
@ -15,9 +15,9 @@ namespace bluetooth {
|
|||
|
||||
//%
|
||||
void midiSendMessage(Buffer data) {
|
||||
BluetoothMIDIService* pMidi = getMidi();
|
||||
ManagedBuffer buf(data);
|
||||
switch(buf.length()) {
|
||||
BluetoothMIDIService* pMidi = getMidi();
|
||||
auto buf = data->payload;
|
||||
switch(data->length) {
|
||||
case 1:
|
||||
pMidi->sendMidiMessage(buf[0]);
|
||||
break;
|
||||
|
|
Загрузка…
Ссылка в новой задаче