mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-23 16:25:19 +03:00
Merge pull request #2022 from iNavFlight/MrD_Fix-erroneous-motor-numbers-in-the-mixer
Fix erroneous numbers on mixer preview
This commit is contained in:
parent
12aa286afc
commit
0e96fbce1e
1 changed files with 6 additions and 1 deletions
|
@ -433,13 +433,18 @@ TABS.mixer.initialize = function (callback, scrollPosition) {
|
|||
rules = currentMixerPreset.motorMixer;
|
||||
}
|
||||
|
||||
if (currentMixerPreset.image != 'quad_x') {
|
||||
for (i = 1; i < 5; i++) {
|
||||
$("#motorNumber"+i).css("visibility", "hidden");
|
||||
}
|
||||
}
|
||||
|
||||
for (const i in rules) {
|
||||
if (rules.hasOwnProperty(i)) {
|
||||
const rule = rules[i];
|
||||
index++;
|
||||
|
||||
if (currentMixerPreset.image != 'quad_x') {
|
||||
$("#motorNumber"+index).css("visibility", "hidden");
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue