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

chore: add semi rule to the linter and run --fix

Adds semicolon to the linter rules.
This commit is contained in:
Tomas Chmelevskij 2021-02-14 07:37:03 +01:00
parent dfbd46c6f1
commit 616c2e796d
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++) {
@ -2199,7 +2199,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;
}
});
}
@ -2424,7 +2424,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]) {