1
0
Fork 0
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:
Petr Ledvina 2018-02-05 12:42:58 +01:00
parent 8738e7d623
commit 5a75737df9
4 changed files with 47 additions and 50 deletions

View file

@ -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