From 6c12b091de2324f8139abce2c63d460a330cacbd Mon Sep 17 00:00:00 2001 From: Julian Wolff Date: Thu, 19 Apr 2018 19:23:13 +0200 Subject: [PATCH] fix #619, wrong assertion on MIDI CC param --- source/backend/engine/CarlaEngineData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backend/engine/CarlaEngineData.cpp b/source/backend/engine/CarlaEngineData.cpp index fd14a3dda..8b499eb5e 100644 --- a/source/backend/engine/CarlaEngineData.cpp +++ b/source/backend/engine/CarlaEngineData.cpp @@ -32,7 +32,7 @@ uint8_t EngineControlEvent::convertToMidiData(const uint8_t channel, uint8_t dat break; case kEngineControlEventTypeParameter: - CARLA_SAFE_ASSERT_RETURN(param >= MAX_MIDI_VALUE, 0); + CARLA_SAFE_ASSERT_RETURN(param < MAX_MIDI_VALUE, 0); data[0] = static_cast(MIDI_STATUS_CONTROL_CHANGE | (channel & MIDI_CHANNEL_BIT));