mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 04:15:28 +03:00
hide behind semver check
This commit is contained in:
parent
48a9b36d86
commit
557f16bbec
1 changed files with 10 additions and 1 deletions
|
@ -1754,6 +1754,11 @@ var mspHelper = (function (gui) {
|
|||
};
|
||||
|
||||
self.sendMotorMixer = function (onCompleteCallback) {
|
||||
|
||||
if (semver.lt(CONFIG.flightControllerVersion, "1.8.1")) {
|
||||
onCompleteCallback();
|
||||
}
|
||||
|
||||
var nextFunction = sendMixer,
|
||||
servoIndex = 0;
|
||||
|
||||
|
@ -2591,7 +2596,11 @@ var mspHelper = (function (gui) {
|
|||
};
|
||||
|
||||
self.loadMotorMixRules = function (callback) {
|
||||
MSP.send_message(MSPCodes.MSP2_COMMON_MOTOR_MIXER, false, false, callback);
|
||||
if (semver.gte(CONFIG.flightControllerVersion, "1.8.1")) {
|
||||
MSP.send_message(MSPCodes.MSP2_COMMON_MOTOR_MIXER, false, false, callback);
|
||||
} else {
|
||||
onCompleteCallback();
|
||||
}
|
||||
};
|
||||
|
||||
self.getCraftName = function(callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue