Skip to content

BitwiseCompoundAnd incorrect bit formatting (missing a 1) #3558

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

Closed
thantik opened this issue Jul 21, 2015 · 2 comments
Closed

BitwiseCompoundAnd incorrect bit formatting (missing a 1) #3558

thantik opened this issue Jul 21, 2015 · 2 comments
Assignees
Labels
Component: Documentation Related to Arduino's documentation content
Milestone

Comments

@thantik
Copy link

thantik commented Jul 21, 2015

At the URL https://www.arduino.cc/en/Reference/BitwiseCompoundAnd

The code at the bottom of the page, just above the "See Also" is

myByte =  10101010;

myByte &= B1111100 == B10101000;

But the B1111100 is missing a 1 on the left side of the value. It should be:

myByte =  10101010;

myByte &= B11111100 == B10101000;
@facchinm facchinm added the Component: Documentation Related to Arduino's documentation content label Jul 21, 2015
@mikaelpatel
Copy link

BW "myByte = 10101010;" should be "myByte = B10101010;" if you are correcting things. Cheers!

@agdl
Copy link
Member

agdl commented Jul 23, 2015

corrected both thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Documentation Related to Arduino's documentation content
Projects
None yet
Development

No branches or pull requests

5 participants