Fix for garbled device name in debug output, closes #265

Thanks @dcoredump
pull/293/merge 2022-06-05
Holger 2 years ago committed by GitHub
parent 60ab4a562b
commit 0a5ec7d529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/mididevice.cpp

@ -461,8 +461,6 @@ void CMIDIDevice::SendSystemExclusiveVoice(uint8_t nVoice, const unsigned nCable
{ {
uint8_t voicedump[163]; uint8_t voicedump[163];
LOGDBG("Sending SysEx voice %u ",nVoice);
// Get voice sysex dump from TG // Get voice sysex dump from TG
m_pSynthesizer->getSysExVoiceDump(voicedump, nTG); m_pSynthesizer->getSysExVoiceDump(voicedump, nTG);
@ -471,7 +469,7 @@ void CMIDIDevice::SendSystemExclusiveVoice(uint8_t nVoice, const unsigned nCable
// send voice dump to all MIDI interfaces // send voice dump to all MIDI interfaces
for(Iterator = s_DeviceMap.begin(); Iterator != s_DeviceMap.end(); ++Iterator) for(Iterator = s_DeviceMap.begin(); Iterator != s_DeviceMap.end(); ++Iterator)
{ {
Iterator->second->Send (voicedump, sizeof(voicedump)*sizeof(uint8_t), nCable); Iterator->second->Send (voicedump, sizeof(voicedump)*sizeof(uint8_t));
LOGNOTE("Send SYSEX voice dump to \"%s\"\n",Iterator->first); LOGDBG("Send SYSEX voice dump %u to \"%s\"",nVoice,Iterator->first.c_str());
} }
} }

Loading…
Cancel
Save