1
0
Fork 0
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:
shota 2023-10-13 04:27:39 +09:00
parent c41129b156
commit 0bb8c1521b
2 changed files with 5 additions and 5 deletions

View file

@ -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() {