1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-25 01:05:15 +03:00

gaaaa versions are inconsistent!

This commit is contained in:
nathan 2016-07-30 02:00:02 -07:00
parent 9ce7f76f27
commit 0412c4b113

View file

@ -22,7 +22,7 @@ TABS.pid_tuning.initialize = function (callback) {
}).then(function() {
return MSP.promise(MSP_codes.MSP_PID);
}).then(function () {
if (semver.gte(CONFIG.apiVersion, "2.9.0") && semver.lte(CONFIG.apiVersion, "3.0.0")) {
if (semver.gte(CONFIG.flightControllerVersion, "2.9.0") && semver.lte(CONFIG.apiVersion, "3.0.0")) {
return MSP.promise(MSP_codes.MSP_SPECIAL_PARAMETERS);
}
}).then(function() {
@ -703,7 +703,7 @@ TABS.pid_tuning.initialize = function (callback) {
}).then(function () {
return MSP.promise(MSP_codes.MSP_SET_PID, MSP.crunch(MSP_codes.MSP_SET_PID));
}).then(function () {
if (semver.gte(CONFIG.apiVersion, "2.9.0") && semver.lte(CONFIG.apiVersion, "3.0.0")) {
if (semver.gte(CONFIG.flightControllerVersion, "2.9.0") && semver.lte(CONFIG.apiVersion, "3.0.0")) {
return MSP.promise(MSP_codes.MSP_SET_SPECIAL_PARAMETERS, MSP.crunch(MSP_codes.MSP_SET_SPECIAL_PARAMETERS));
}
}).then(function () {