From 6b322078a67d519e1d6ee185e26a09dd24ea83aa Mon Sep 17 00:00:00 2001 From: Curtis Faith Date: Tue, 5 Dec 2017 11:44:39 -0500 Subject: [PATCH] Make explicit buffer does not contain terminator. This fixes #1223 --- Language/Functions/Communication/Serial/readBytesUntil.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Language/Functions/Communication/Serial/readBytesUntil.adoc b/Language/Functions/Communication/Serial/readBytesUntil.adoc index c3eba1df8..b5eca10d9 100644 --- a/Language/Functions/Communication/Serial/readBytesUntil.adoc +++ b/Language/Functions/Communication/Serial/readBytesUntil.adoc @@ -14,7 +14,7 @@ title: Serial.readBytesUntil() [float] === Description -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()]). +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. `Serial.readBytesUntil()` returns the number of characters read into the buffer. A 0 means no valid data was found.