mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-20 06:45:12 +03:00
implement verison checking in conflicting msp commands
This commit is contained in:
parent
efa10099d2
commit
f9dbdf661d
2 changed files with 24 additions and 5 deletions
|
@ -26,7 +26,7 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
return MSP.promise(MSP_codes.MSP_SPECIAL_PARAMETERS);
|
||||
}
|
||||
}).then(function() {
|
||||
if (semver.gte(CONFIG.apiVersion, "3.0.0")) {
|
||||
if (semver.gte(CONFIG.apiVersion, "2.8.2")) {
|
||||
return MSP.promise(MSP_codes.MSP_PID_ADVANCED);
|
||||
}
|
||||
}).then(function() {
|
||||
|
@ -707,7 +707,7 @@ TABS.pid_tuning.initialize = function (callback) {
|
|||
return MSP.promise(MSP_codes.MSP_SET_SPECIAL_PARAMETERS, MSP.crunch(MSP_codes.MSP_SET_SPECIAL_PARAMETERS));
|
||||
}
|
||||
}).then(function () {
|
||||
if (semver.gte(CONFIG.apiVersion, "3.0.0")) {
|
||||
if (semver.gte(CONFIG.apiVersion, "2.8.2")) {
|
||||
return MSP.promise(MSP_codes.MSP_SET_PID_ADVANCED, MSP.crunch(MSP_codes.MSP_SET_PID_ADVANCED));
|
||||
}
|
||||
}).then(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue