1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-17 21:35:30 +03:00

Merge pull request #1072 from iNavFlight/dzikuvx-fix-output-mapping

Correcty unique used servo indexes
This commit is contained in:
Paweł Spychalski 2020-09-30 15:53:00 +02:00 committed by GitHub
commit edf99e66d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -92,7 +92,9 @@ let ServoMixerRuleCollection = function () {
}
}
return jQuery.unique(out).sort(function(a, b){
let unique = [...new Set(out)];
return unique.sort(function(a, b) {
return a-b;
});
}