Skip to content

Commit 98b8c1a

Browse files
Mohammad GhasemiahmadiMohammad Ghasemiahmadi
authored andcommitted
Fixed the docstring for the set_buffer_size function. It should be called after the port is opened otherwise it will be overwritten
1 parent 22d3900 commit 98b8c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serial/serialwin32.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def cd(self):
418418
def set_buffer_size(self, rx_size=4096, tx_size=None):
419419
"""\
420420
Recommend a buffer size to the driver (device driver can ignore this
421-
value). Must be called before the port is opened.
421+
value). Must be called after the port is opened.
422422
"""
423423
if tx_size is None:
424424
tx_size = rx_size

0 commit comments

Comments
 (0)