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:
parent
705c8fe88b
commit
1eb9ad6639
2 changed files with 48 additions and 21 deletions
16
js/model.js
16
js/model.js
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue