Skip to content

Commit cb6e948

Browse files
authored
Merge pull request #978 from iNavFlight/dzikuvx-fix-pid-tab
Fix PID tab for 2.4 firmware
2 parents 84cad97 + e799acf commit cb6e948

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tabs/pid_tuning.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ TABS.pid_tuning.initialize = function (callback) {
4141
var $this = $(this),
4242
bankPosition = $this.data('pid-bank-position');
4343

44-
$this.find('td:first').text(pidNames[bankPosition]);
44+
if (pidNames[bankPosition]) {
45+
$this.find('td:first').text(pidNames[bankPosition]);
4546

46-
$this.find('input').each(function (index) {
47-
$(this).val(PIDs[bankPosition][index]);
48-
});
47+
$this.find('input').each(function (index) {
48+
$(this).val(PIDs[bankPosition][index]);
49+
});
50+
}
4951
});
5052

5153
// Fill in data from RC_tuning object

0 commit comments

Comments
 (0)