Fix for fix

10.3.x-maintenance
Bas Delfos 2017-07-29 12:24:42 +02:00
parent e5b777b86f
commit 70c69b807d
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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" : "";
}

View File

@ -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" : "";
}