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

Merge pull request #2411 from chmelevskij/add-semi-to-eslint

chore: add `semi` rule to the linter and run `--fix`
This commit is contained in:
Michael Keller 2021-02-17 07:52:18 +13:00 committed by GitHub
commit 99e36744d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 103 additions and 102 deletions

View file

@ -1036,7 +1036,7 @@ TABS.pid_tuning.initialize = function (callback) {
}
return isVisible;
}
};
let isVisibleBaroMagGps = false;
@ -1440,18 +1440,18 @@ TABS.pid_tuning.initialize = function (callback) {
{name: "MultiWii (2.3 - latest)"},
{name: "MultiWii (2.3 - hybrid)"},
{name: "Harakiri"}
]
];
} else if (semver.lt(FC.CONFIG.apiVersion, "1.20.0")) {
pidControllerList = [
{name: ""},
{name: "Integer"},
{name: "Float"}
]
];
} else {
pidControllerList = [
{name: "Legacy"},
{name: "Betaflight"}
]
];
}
for (let i = 0; i < pidControllerList.length; i++) {
@ -2225,7 +2225,7 @@ TABS.pid_tuning.checkUpdateProfile = function (updateRateProfile) {
if (changedRateProfile) {
GUI.log(i18n.getMessage('pidTuningReceivedRateProfile', [FC.CONFIG.rateProfile + 1]));
FC.CONFIG.rateProfile = self.currentRateProfile
FC.CONFIG.rateProfile = self.currentRateProfile;
}
});
}
@ -2450,7 +2450,7 @@ TABS.pid_tuning.updateRatesLabels = function() {
$('.maxRateWarning').toggle(warningRates);
// and sort them in descending order so the largest value is at the top always
balloons.sort(function(a,b) {return (b.value - a.value)});
balloons.sort(function(a,b) {return (b.value - a.value);});
// add the current rc values
if (currentValues[0] && currentValues[1] && currentValues[2]) {