1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-26 01:35:28 +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() { }).then(function() {
return MSP.promise(MSP_codes.MSP_PID); return MSP.promise(MSP_codes.MSP_PID);
}).then(function () { }).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); return MSP.promise(MSP_codes.MSP_SPECIAL_PARAMETERS);
} }
}).then(function() { }).then(function() {
@ -703,7 +703,7 @@ TABS.pid_tuning.initialize = function (callback) {
}).then(function () { }).then(function () {
return MSP.promise(MSP_codes.MSP_SET_PID, MSP.crunch(MSP_codes.MSP_SET_PID)); return MSP.promise(MSP_codes.MSP_SET_PID, MSP.crunch(MSP_codes.MSP_SET_PID));
}).then(function () { }).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)); return MSP.promise(MSP_codes.MSP_SET_SPECIAL_PARAMETERS, MSP.crunch(MSP_codes.MSP_SET_SPECIAL_PARAMETERS));
} }
}).then(function () { }).then(function () {