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