1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-23 16:25:22 +03:00

Merge pull request #159 from mikeller/fix_pid_controller_2

Fixed reading PID controller value.
This commit is contained in:
Michael Keller 2016-07-29 21:42:17 +12:00 committed by GitHub
commit d74f3bc33f

View file

@ -14,7 +14,7 @@ TABS.pid_tuning.initialize = function (callback) {
// requesting MSP_STATUS manually because it contains CONFIG.profile // requesting MSP_STATUS manually because it contains CONFIG.profile
MSP.promise(MSP_codes.MSP_STATUS).then(function() { MSP.promise(MSP_codes.MSP_STATUS).then(function() {
if (GUI.canChangePidController) { if (semver.gte(CONFIG.apiVersion, CONFIGURATOR.pidControllerChangeMinApiVersion)) {
return MSP.promise(MSP_codes.MSP_PID_CONTROLLER); return MSP.promise(MSP_codes.MSP_PID_CONTROLLER);
} }
return true; return true;