mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 04:15:44 +03:00
Implement getBoxIdState
packFlightModeFlags is simplified by using it. Base for #5111
This commit is contained in:
parent
8738e7d623
commit
5a75737df9
4 changed files with 47 additions and 50 deletions
|
@ -80,6 +80,7 @@ http://resnet.uoregon.edu/~gurney_j/jmpc/bitwise.html
|
|||
(32*((v)/2L>>31 > 0) \
|
||||
+ LOG2_32BIT((v)*1L >>16*((v)/2L>>31 > 0) \
|
||||
>>16*((v)/2L>>31 > 0)))
|
||||
#define LOG2(v) LOG2_64BIT(v)
|
||||
|
||||
#if 0
|
||||
// ISO C version, but no type checking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue