chain, don't double-instantiate

10.3.x-maintenance
nathan 2016-07-30 00:52:29 -07:00
parent 010b3378a3
commit 26e7b5e9ea
1 changed files with 2 additions and 1 deletions

View File

@ -687,7 +687,8 @@ TABS.pid_tuning.initialize = function (callback) {
$('a.update').click(function () {
form_to_pid_and_rc();
Promise.resolve(function () {
Promise.resolve(true)
.then(function () {
var promise;
if (semver.gte(CONFIG.apiVersion, CONFIGURATOR.pidControllerChangeMinApiVersion)) {
PID.controller = pidController_e.val();