Go Down

Topic: Error in lang reference: compound bitwise OR  (|=) (Read 729 times) previous topic - next topic

newbee

Hello,

I think there's a mistake in the following text:

"Consequently - to set bits 0 & 1 of a variable, while leaving the
rest of the variable unchanged, use the compound bitwise AND
operator (&=) with the constant B00000011
1 0 1 0 1 0 1 0 variable
0 0 0 0 0 0 1 1 mask
----------------------
1 0 1 0 1 0 1 1        "

should read: "use the compound bitwise OR (|=) operator"

creates confusion...



Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy