Skip to content

Update bitWrite.adoc#885

Open
HowardWParr wants to merge 1 commit into
arduino:masterfrom
HowardWParr:patch-2
Open

Update bitWrite.adoc#885
HowardWParr wants to merge 1 commit into
arduino:masterfrom
HowardWParr:patch-2

Conversation

@HowardWParr

Copy link
Copy Markdown
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
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
Copy Markdown
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

HowardWParr commented Aug 13, 2022 via email

Copy link
Copy Markdown
Contributor Author

@per1234

per1234 commented Aug 13, 2022

Copy link
Copy Markdown
Collaborator

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

HowardWParr commented Aug 13, 2022 via email

Copy link
Copy Markdown
Contributor Author

@per1234

per1234 commented Aug 13, 2022

Copy link
Copy Markdown
Collaborator

@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

@per1234 per1234 removed their assignment Sep 23, 2025
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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.

3 participants