1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-19 14:25:13 +03:00

Allow reassignment of led pin to servos or motors

This commit is contained in:
Marcelo Bezerra 2024-05-11 23:47:19 +02:00
parent 71ac169df6
commit c98bf6e013
5 changed files with 21 additions and 7 deletions

View file

@ -17,7 +17,7 @@ var BitHelper = function() {
}
self.bit_check = function (num, bit) {
return ((num >> bit) % 2 != 0);
return ((1 << bit) & num) != 0;
}
self.bit_set = function (num, bit) {