Skip to content

Commit acae1ca

Browse files
author
SimonePDA
authored
Merge pull request #280 from inflector/patch-1
Make explicit buffer does not contain terminator.
2 parents daa602e + 6b32207 commit acae1ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Functions/Communication/Serial/readBytesUntil.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ title: Serial.readBytesUntil()
1414

1515
[float]
1616
=== Description
17-
Serial.readBytesUntil() reads characters from the serial buffer into an array. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see link:../settimeout[Serial.setTimeout()]).
17+
Serial.readBytesUntil() reads characters from the serial buffer into an array. The function terminates if the terminator character is detected, the determined length has been read, or it times out (see link:../settimeout[Serial.setTimeout()]). The function returns the characters up to the last character before the supplied terminator. The terminator itself is not returned in the buffer.
1818

1919
`Serial.readBytesUntil()` returns the number of characters read into the buffer. A 0 means no valid data was found.
2020

0 commit comments

Comments
 (0)