Skip to content

Correct Serial return types #198

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
Nov 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Language/Functions/Communication/Serial/print.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ To send a single byte, use link:../write[Serial.write()].

[float]
=== Returns
`size_t (long)`: `print()` returns the number of bytes written, though reading that number is optional.
`size_t`: `print()` returns the number of bytes written, though reading that number is optional.

--
// OVERVIEW SECTION ENDS
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Communication/Serial/println.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Prints data to the serial port as human-readable ASCII text followed by a carria

[float]
=== Returns
`size_t` (`long`): `println()` returns the number of bytes written, though reading that number is optional
`size_t`: `println()` returns the number of bytes written, though reading that number is optional
--
// OVERVIEW SECTION ENDS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Serial.readBytesUntil() reads characters from the serial buffer into an array. T

[float]
=== Returns
`byte`
`size_t`

--
// OVERVIEW SECTION ENDS
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Communication/Serial/readString.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Nothing

[float]
=== Returns
A string read from the serial buffer
A String read from the serial buffer

--
// OVERVIEW SECTION ENDS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ This function is part of the Stream class, and is called by any class that inher

[float]
=== Returns
The entire string read from the serial buffer, until the terminator character is detected
The entire String read from the serial buffer, until the terminator character is detected

--
// OVERVIEW SECTION ENDS
Expand Down
2 changes: 1 addition & 1 deletion Language/Functions/Communication/Serial/write.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ _Arduino Mega also supports:_

[float]
=== Returns
`byte`
`size_t`

`write()` will return the number of bytes written, though reading that number is optional

Expand Down