Skip to content

Commit 298e9ef

Browse files
authored
Merge pull request #8 from per1234/serial-readBytesUntil-terminator-note
Make explicit buffer does not contain terminator.
2 parents 752767e + a8b6175 commit 298e9ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Language/Functions/Communication/Serial/readBytesUntil.adoc

+1-1
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)