Skip to content

Commit

Permalink
translate sysex debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vsicurella committed Jan 20, 2024
1 parent 7996b40 commit 5de6bd6
Showing 1 changed file with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,13 @@ void LumatoneFirmwareDriver::sendCurrentMessage()
sendMessageNow(currentMsgWaitingForAck); // send it

// Notify listeners
DBG("SENT: " + currentMsgWaitingForAck.getDescription());
#if JUCE_DEBUG
{
juce::String msg = "SENT: " + FirmwareSupport::getCommandDescription(currentMsgWaitingForAck);
// DBG("SENT: " + currentMsgWaitingForAck.getDescription());
DBG(msg);
}
#endif
// const juce::MessageManagerLock mmLock;
// this->listeners.call(&Listener::midiMessageSent, currentMsgWaitingForAck);
// notifyMessageSent(midiOutput, currentMsgWaitingForAck);
Expand All @@ -899,10 +905,11 @@ void LumatoneFirmwareDriver::handleIncomingMidiMessage(juce::MidiInput* source,
#if JUCE_DEBUG
if (message.isSysEx())
{
auto msg = "RCVD: " + FirmwareSupport::getCommandDescription(message);
if (source)
DBG("RCVD: " + message.getDescription() + "; from " + source->getName());
DBG(msg + "; from " + source->getName());
else
DBG("RCVD: " + message.getDescription() + "; called by processor");
DBG(msg + "; called by processor");
}
if (!message.isSysEx() && !message.isMidiClock())
{
Expand Down

0 comments on commit 5de6bd6

Please sign in to comment.