diff --git a/js/msp/MSPHelper.js b/js/msp/MSPHelper.js index f4b2161f..5108c03a 100644 --- a/js/msp/MSPHelper.js +++ b/js/msp/MSPHelper.js @@ -557,7 +557,7 @@ MspHelper.prototype.process_data = function(dataHandler) { case MSPCodes.MSP_MIXER_CONFIG: MIXER_CONFIG.mixer = data.readU8(); - if (semver.lt(CONFIG.apiVersion, "1.36.0")) { + if (semver.gte(CONFIG.apiVersion, "1.36.0")) { MIXER_CONFIG.reverseMotorDir = data.readU8(); } break; @@ -1163,7 +1163,7 @@ MspHelper.prototype.crunch = function(code) { break; case MSPCodes.MSP_SET_MIXER_CONFIG: buffer.push8(MIXER_CONFIG.mixer) - if (semver.lt(CONFIG.apiVersion, "1.36.0")) { + if (semver.gte(CONFIG.apiVersion, "1.36.0")) { buffer.push8(MIXER_CONFIG.reverseMotorDir); } break; diff --git a/tabs/configuration.js b/tabs/configuration.js index c5fd6e28..3be59e0f 100644 --- a/tabs/configuration.js +++ b/tabs/configuration.js @@ -176,7 +176,7 @@ TABS.configuration.initialize = function (callback, scrollPosition) { var mixer = MIXER_CONFIG.mixer var reverse = ""; - if (semver.lt(CONFIG.apiVersion, "1.36.0")) { + if (semver.gte(CONFIG.apiVersion, "1.36.0")) { reverse = MIXER_CONFIG.reverseMotorDir ? "_reversed" : ""; } diff --git a/tabs/motors.js b/tabs/motors.js index 99f0f509..e3b29530 100644 --- a/tabs/motors.js +++ b/tabs/motors.js @@ -170,7 +170,7 @@ TABS.motors.initialize = function (callback) { function update_model(mixer) { var reverse = ""; - if (semver.lt(CONFIG.apiVersion, "1.36.0")) { + if (semver.gte(CONFIG.apiVersion, "1.36.0")) { reverse = MIXER_CONFIG.reverseMotorDir ? "_reversed" : ""; }