Skip to content

Commit

Permalink
Merge pull request #2022 from iNavFlight/MrD_Fix-erroneous-motor-numb…
Browse files Browse the repository at this point in the history
…ers-in-the-mixer

Fix erroneous numbers on mixer preview
  • Loading branch information
DzikuVx committed Apr 18, 2024
1 parent 12aa286 commit 0e96fbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tabs/mixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 0e96fbc

Please sign in to comment.