From 61ed92820bd34b1753625cc457e8512ddc490668 Mon Sep 17 00:00:00 2001 From: Vincenzo Sicurella Date: Sun, 4 Aug 2024 04:23:20 -0400 Subject: [PATCH] don't expect msg when busy --- .../lumatone_midi_driver/lumatone_midi_driver.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Source/lumatone_editor_library/lumatone_midi_driver/lumatone_midi_driver.cpp b/Source/lumatone_editor_library/lumatone_midi_driver/lumatone_midi_driver.cpp index 50b9343..dee3a54 100644 --- a/Source/lumatone_editor_library/lumatone_midi_driver/lumatone_midi_driver.cpp +++ b/Source/lumatone_editor_library/lumatone_midi_driver/lumatone_midi_driver.cpp @@ -941,8 +941,12 @@ void LumatoneFirmwareDriver::handleIncomingMidiMessage(juce::MidiInput* source, { // Start delay timer, after which message will be sent again timerType = TimerType::delayWhileDeviceBusy; - DBG("Starting Busy Timer"); - startTimer(busyTimeDelayInMilliseconds); + if (!isTimerRunning()) + { + DBG("Starting Busy Timer"); + hasMsgWaitingForAck = false; + startTimer(busyTimeDelayInMilliseconds); + } } else {