MIDI encoder fix

This commit is contained in:
Jack Andersen 2017-03-23 19:28:30 -10:00
parent 9a7cadce3a
commit 12bbf540fd
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@ void MIDIEncoder<Sender>::_sendMessage(const uint8_t* data, size_t len)
template <class Sender> template <class Sender>
void MIDIEncoder<Sender>::_sendContinuedValue(uint32_t val) void MIDIEncoder<Sender>::_sendContinuedValue(uint32_t val)
{ {
uint32_t send[3] = {}; uint8_t send[3] = {};
uint32_t* ptr = nullptr; uint8_t* ptr = nullptr;
if (val >= 0x4000) if (val >= 0x4000)
{ {
ptr = &send[0]; ptr = &send[0];