Skip to content

Commit 91169a8

Browse files
author
Stefania
authored
Merge pull request #198 from per1234/Serial-return-types
Correct Serial return types
2 parents c62efee + 28b666f commit 91169a8

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

Language/Functions/Communication/Serial/print.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To send a single byte, use link:../write[Serial.write()].
5252

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

5757
--
5858
// OVERVIEW SECTION ENDS

Language/Functions/Communication/Serial/println.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Prints data to the serial port as human-readable ASCII text followed by a carria
3333

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

Language/Functions/Communication/Serial/readBytesUntil.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Serial.readBytesUntil() reads characters from the serial buffer into an array. T
3838

3939
[float]
4040
=== Returns
41-
`byte`
41+
`size_t`
4242

4343
--
4444
// OVERVIEW SECTION ENDS

Language/Functions/Communication/Serial/readString.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Nothing
3333

3434
[float]
3535
=== Returns
36-
A string read from the serial buffer
36+
A String read from the serial buffer
3737

3838
--
3939
// OVERVIEW SECTION ENDS

Language/Functions/Communication/Serial/readStringUntil.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ This function is part of the Stream class, and is called by any class that inher
3333

3434
[float]
3535
=== Returns
36-
The entire string read from the serial buffer, until the terminator character is detected
36+
The entire String read from the serial buffer, until the terminator character is detected
3737

3838
--
3939
// OVERVIEW SECTION ENDS

Language/Functions/Communication/Serial/write.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _Arduino Mega also supports:_
4040

4141
[float]
4242
=== Returns
43-
`byte`
43+
`size_t`
4444

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

0 commit comments

Comments
 (0)