mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-26 01:35:28 +03:00
Fix Dmin in RP mode
This commit is contained in:
parent
3ebd1697a5
commit
5b5ae0dc1a
1 changed files with 1 additions and 5 deletions
|
@ -487,14 +487,10 @@ TuningSliders.updateFilterSlidersDisplay = function() {
|
||||||
|
|
||||||
TuningSliders.updateFormPids = function(updateSlidersOnly = false) {
|
TuningSliders.updateFormPids = function(updateSlidersOnly = false) {
|
||||||
if (!updateSlidersOnly) {
|
if (!updateSlidersOnly) {
|
||||||
let rows = 3;
|
|
||||||
if (semver.gte(FC.CONFIG.apiVersion, API_VERSION_1_44)) {
|
|
||||||
rows = this.sliderPidsMode === 1 ? 2 : 3;
|
|
||||||
}
|
|
||||||
FC.PID_NAMES.forEach(function (elementPid, indexPid) {
|
FC.PID_NAMES.forEach(function (elementPid, indexPid) {
|
||||||
const pidElements = $(`.pid_tuning .${elementPid} input`);
|
const pidElements = $(`.pid_tuning .${elementPid} input`);
|
||||||
pidElements.each(function (indexInput) {
|
pidElements.each(function (indexInput) {
|
||||||
if (indexPid < rows && indexInput < rows) {
|
if (indexPid < 3 && indexInput < 3) {
|
||||||
$(this).val(FC.PIDS[indexPid][indexInput]);
|
$(this).val(FC.PIDS[indexPid][indexInput]);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue