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

Merge pull request #2343 from haslinghuis/fix-pid-balloon

This commit is contained in:
Michael Keller 2020-12-20 11:18:12 +01:00 committed by GitHub
commit bc47878b30
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1325,12 +1325,12 @@ TABS.pid_tuning.initialize = function (callback) {
}
// Add a name to each row of PIDs if empty
$('.pid_tuning tr').each(function(){
for (let i = 0; i <= FC.PID_NAMES.length; i++) {
if ($(this).hasClass(FC.PID_NAMES[i])) {
$('.pid_tuning tr').each(function() {
for (const pidName of FC.PID_NAMES) {
if ($(this).hasClass(pidName)) {
const firstColumn = $(this).find('td:first');
if (!firstColumn.text()) {
firstColumn.text(FC.PID_NAMES[i]);
firstColumn.text(pidName);
}
}
}
@ -2412,8 +2412,8 @@ TABS.pid_tuning.updateRatesLabels = function() {
);
}
// then display them on the chart
for (let i = 0; i <= balloons.length; i++) {
balloons[i].balloon();
for (const balloon of balloons) {
balloon.balloon();
}
stickContext.restore();