Skip to content

Commit 4ffcbf9

Browse files
committed
Fix Dmin in RP mode
1 parent 3ebd169 commit 4ffcbf9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/js/TuningSliders.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -487,15 +487,12 @@ TuningSliders.updateFilterSlidersDisplay = function() {
487487

488488
TuningSliders.updateFormPids = function(updateSlidersOnly = false) {
489489
if (!updateSlidersOnly) {
490-
let rows = 3;
491-
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
492-
rows = this.sliderPidsMode === 1 ? 2 : 3;
493-
}
494490
FC.PID_NAMES.forEach(function (elementPid, indexPid) {
495491
const pidElements = $(`.pid_tuning .${elementPid} input`);
496492
pidElements.each(function (indexInput) {
497-
if (indexPid < rows && indexInput < rows) {
493+
if (indexPid < 3 && indexInput < 3) {
498494
$(this).val(FC.PIDS[indexPid][indexInput]);
495+
console.log($(this).val());
499496
}
500497
});
501498
});

0 commit comments

Comments
 (0)