Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why doesn't this line contain val? #1

Open
Ivan-Malin opened this issue Oct 17, 2022 · 0 comments
Open

Why doesn't this line contain val? #1

Ivan-Malin opened this issue Oct 17, 2022 · 0 comments

Comments

@Ivan-Malin
Copy link

I was copy-pasting some stuff for home python project and found some strange line.
As I undarstand it, this line should contains "val" as the base of the message. And only than it should be transfered val->bval->buf (message), shouldn't it?

Something like

  • bval = val & 0xff;
    or
  • bval = val;
  • bval &= 0xff;

bval &= 0xff;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant