1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 04:15:28 +03:00

Fix colours and labels bug in the mixer

This commit is contained in:
Darren Lines 2022-05-13 23:35:07 +01:00
parent 705c8fe88b
commit 1eb9ad6639
2 changed files with 48 additions and 21 deletions

View file

@ -799,6 +799,22 @@ helper.mixer = (function (mixerList) {
}
}
publicScope.countSurfaceType = function(mixer, surface) {
let count = 0;
for (const i in mixer.servoMixer) {
if (mixer.servoMixer.hasOwnProperty(i)) {
const s = mixer.servoMixer[i];
if (s.getInput() === surface) {
count++;
}
}
}
return count;
}
return publicScope;
})(mixerList);