@@ -119,14 +119,14 @@ Methods
119119 *Note: * for 9 bit characters each character takes two bytes, ``nbytes `` must
120120 be even, and the number of characters is ``nbytes/2 ``.
121121
122- Return value: a bytes object containing the bytes read in. Returns ``b'' ``
122+ Return value: a bytes object containing the bytes read in. Returns ``None ``
123123 on timeout.
124124
125125.. method :: uart.readall()
126126
127127 Read as much data as possible.
128128
129- Return value: a bytes object.
129+ Return value: a bytes object or `` None `` on timeout .
130130
131131.. method :: uart.readchar()
132132
@@ -139,13 +139,14 @@ Methods
139139 Read bytes into the ``buf ``. If ``nbytes `` is specified then read at most
140140 that many bytes. Otherwise, read at most ``len(buf) `` bytes.
141141
142- Return value: number of bytes read and stored into ``buf ``.
142+ Return value: number of bytes read and stored into ``buf `` or ``None `` on
143+ timeout.
143144
144145.. method :: uart.readline()
145146
146147 Read a line, ending in a newline character.
147148
148- Return value: the line read.
149+ Return value: the line read or `` None `` on timeout .
149150
150151.. method :: uart.write(buf)
151152
@@ -156,7 +157,7 @@ Methods
156157 bytes are used for each character (little endian), and ``buf `` must contain
157158 an even number of bytes.
158159
159- Return value: number of bytes written.
160+ Return value: number of bytes written or `` None `` on timeout .
160161
161162.. method :: uart.sendbreak()
162163
0 commit comments