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:
parent
71ac169df6
commit
c98bf6e013
5 changed files with 21 additions and 7 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue