Replies: 1 comment 1 reply
-
Yes canonical code for this is |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Using Visual Studio to compile rtl_433, I get the following warning for this line:
The code is this:
Right now, this means the addition is done and if it's not zero then
unparsed_length
will be1
else0
.This looks weird as the original intent, I sense that the point was to get the number of bytes required to store
num_unparsed_bits
bits.If my feeling is right, then the operation can be written like this:
In my
manchester_bitrow
branch, I even have a macro to do it:Let me know if you feel that a change should be done, I can create the PR.
Beta Was this translation helpful? Give feedback.
All reactions