mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 20:35:19 +03:00
Fix some minor issues on mixer tab
This commit is contained in:
parent
cf696de656
commit
4ebb8fb3ff
3 changed files with 22 additions and 3 deletions
|
@ -82,5 +82,20 @@ let ServoMixerRuleCollection = function () {
|
|||
return count;
|
||||
};
|
||||
|
||||
self.getUsedServoIndexes = function () {
|
||||
let out = [];
|
||||
|
||||
for (let ruleIndex in data) {
|
||||
if (data.hasOwnProperty(ruleIndex)) {
|
||||
let rule = data[ruleIndex];
|
||||
out.push(rule.getTarget());
|
||||
}
|
||||
}
|
||||
|
||||
return jQuery.unique(out).sort(function(a, b){
|
||||
return a-b;
|
||||
});
|
||||
}
|
||||
|
||||
return self;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue