Skip to content

Fix docs on Serial.readBytes return value #38

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

Merged
merged 1 commit into from
Aug 28, 2017

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented May 30, 2017

The way the docs were worded, it looked like the readBytes function
would return a value of type byte, even though that's not true. When
using a byte typed variable to store the number of bytes read value,
an overflow occurs.

According to the source code, the return type is size_t.

The way the docs were worded, it looked like the `readBytes` function
would return a value of type `byte`, even though that's not true. When
using a `byte` typed variable to store the number of bytes read value,
an overflow occurs.
@agdl agdl merged commit 653ee30 into arduino:master Aug 28, 2017
@dbrgn dbrgn deleted the fix-docs-serial-read branch August 28, 2017 06:47
per1234 pushed a commit to per1234/reference-en that referenced this pull request May 7, 2022
Translated bitClear.adoc to German
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

Successfully merging this pull request may close these issues.

3 participants