Update tio man page

This commit is contained in:
Martin Lund 2025-05-25 19:46:18 +02:00
parent 7e61a34df3
commit 58bf5c5008
2 changed files with 3 additions and 3 deletions

View file

@ -447,8 +447,8 @@ Returns 1 on successful match, 0 on timeout, or -1 on error.
On successful match it also returns the match string as second return value. On successful match it also returns the match string as second return value.
.IP "\fBread(size, timeout)" .IP "\fBread(size, timeout)"
Read from serial device. If timeout is 0 or not provided it will wait forever Read up to size bytes from serial device. If timeout is 0 or not provided it
until data is ready to read. will wait forever until data is ready to read.
Returns number of bytes read on success, 0 on timeout, or -1 on error. Returns number of bytes read on success, 0 on timeout, or -1 on error.

View file

@ -357,7 +357,7 @@ SCRIPT API
On successful match it also returns the match string as second return value. On successful match it also returns the match string as second return value.
read(size, timeout) read(size, timeout)
Read from serial device. If timeout is 0 or not provided it will wait forever until data is ready to read. Read up to size bytes from serial device. If timeout is 0 or not provided it will wait forever until data is ready to read.
Returns number of bytes read on success, 0 on timeout, or -1 on error. Returns number of bytes read on success, 0 on timeout, or -1 on error.