Skip to content

Commit 64ae6d1

Browse files
committed
Fixed persisting of vbatPidCompensation.
1 parent af3903c commit 64ae6d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tabs/pid_tuning.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ TABS.pid_tuning.initialize = function (callback) {
5959
}
6060

6161
if (semver.gte(CONFIG.flightControllerVersion, "2.8.1")) {
62-
$('input[name="#vbatpidcompensation"]').prop('checked', ADVANCED_TUNING.vbatPidCompensation !== 0);
62+
$('input[id="vbatpidcompensation"]').prop('checked', ADVANCED_TUNING.vbatPidCompensation !== 0);
6363
}
6464

6565
if (semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {
@@ -266,7 +266,7 @@ TABS.pid_tuning.initialize = function (callback) {
266266
}
267267

268268
if (semver.gte(CONFIG.flightControllerVersion, "2.8.1")) {
269-
ADVANCED_TUNING.vbatPidCompensation = $('input[name="#vbatpidcompensation"]').is(':checked') ? 1 : 0;
269+
ADVANCED_TUNING.vbatPidCompensation = $('input[id="vbatpidcompensation"]').is(':checked') ? 1 : 0;
270270
}
271271

272272
if (semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {

0 commit comments

Comments
 (0)