From 4ffed80497d634381ded553058f2a2f41c19d283 Mon Sep 17 00:00:00 2001 From: probonopd Date: Thu, 1 May 2025 09:10:21 +0200 Subject: [PATCH] Add a warning log when no matching device is found --- src/mididevice.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mididevice.cpp b/src/mididevice.cpp index cdb2f3e..ce7e920 100644 --- a/src/mididevice.cpp +++ b/src/mididevice.cpp @@ -767,5 +767,7 @@ void CMIDIDevice::SendSystemExclusiveVoice(uint8_t nVoice, const std::string& de if (Iterator != s_DeviceMap.end()) { Iterator->second->Send(voicedump, sizeof(voicedump), nCable); LOGDBG("Send SYSEX voice dump %u to \"%s\"", nVoice, deviceName.c_str()); + } else { + LOGWARN("No device found in s_DeviceMap for name: %s", deviceName.c_str()); } }