1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-24 16:55:22 +03:00

Fix erroneous numbers on mixer preview

This commit is contained in:
Darren Lines 2024-04-09 21:53:31 +01:00
parent c9a42963e5
commit 016b08cd26

View file

@ -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;
}