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

Update bitWrite.adoc #885

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

HowardWParr
Copy link
Contributor

The bitWrite() function does return the updated value.

bitWrite() function does return the updated value.
@per1234 per1234 added the bug label Jun 27, 2022
@@ -59,6 +59,7 @@ void setup() {
Serial.println(x, BIN); // 10000000
bitWrite(x, 0, 1); // write 1 to the least significant bit of x
Serial.println(x, BIN); // 10000001
Serial.println(bitWrite(x, 1, 1), BIN); // 10000011
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Serial.println(bitWrite(x, 1, 1), BIN); // 10000011

The example is meant to be a demonstration of the basic usage of the function. Even though it is indisputable that the "return" of the macro must be documented correctly, I don't think it needs to be demonstrated since this is not a common use pattern for bitWrite.

@per1234 per1234 self-assigned this Aug 13, 2022
@HowardWParr
Copy link
Contributor Author

HowardWParr commented Aug 13, 2022 via email

@per1234
Copy link
Collaborator

per1234 commented Aug 13, 2022

Clearly we are in agreement on this subject, so there is no need to discuss it further. Let's focus on the specifics of my review so we can make progress in that direction.

@HowardWParr
Copy link
Contributor Author

HowardWParr commented Aug 13, 2022 via email

@per1234
Copy link
Collaborator

per1234 commented Aug 13, 2022

@HowardWParr if you agree with the change I requested during my review, then make that change.

If you disagree with the change I requested, then provide a clear explanation of why you disagree.

I notice that you are replying via email. Please come here to the pull request page on GitHub so that you can be sure to see the actual suggestion I made. The pull request is at this URL:

#885

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

Successfully merging this pull request may close these issues.

2 participants