From 12bbf540fd25a30b832cdfa94a38acaa5839a969 Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Thu, 23 Mar 2017 19:28:30 -1000 Subject: [PATCH] MIDI encoder fix --- lib/audiodev/MIDIEncoder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/audiodev/MIDIEncoder.cpp b/lib/audiodev/MIDIEncoder.cpp index 27eaf64..1a00f93 100644 --- a/lib/audiodev/MIDIEncoder.cpp +++ b/lib/audiodev/MIDIEncoder.cpp @@ -20,8 +20,8 @@ void MIDIEncoder::_sendMessage(const uint8_t* data, size_t len) template void MIDIEncoder::_sendContinuedValue(uint32_t val) { - uint32_t send[3] = {}; - uint32_t* ptr = nullptr; + uint8_t send[3] = {}; + uint8_t* ptr = nullptr; if (val >= 0x4000) { ptr = &send[0];