mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-24 08:45:26 +03:00
minor fix on output mapping
This commit is contained in:
parent
c41129b156
commit
0bb8c1521b
2 changed files with 5 additions and 5 deletions
|
@ -133,11 +133,10 @@ let ServoMixerRuleCollection = function () {
|
|||
}
|
||||
}
|
||||
|
||||
let unique = [...new Set(out)];
|
||||
|
||||
return unique.sort(function(a, b) {
|
||||
return a-b;
|
||||
});
|
||||
let minIndex = Math.min(...out);
|
||||
let maxIndex = Math.max(...out);
|
||||
return Array.from({ length: maxIndex - minIndex + 1 }, (_, index) => minIndex + index);
|
||||
}
|
||||
|
||||
self.getNextUnusedIndex = function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue