Skip to content

Commit

Permalink
Update AUTHORS and add a safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
eblot committed Aug 31, 2017
1 parent 1089575 commit e2d2ffc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyftdi/doc/authors.rst
Expand Up @@ -71,4 +71,4 @@ Contributors

* Vianney le Clément de Saint-Marcq:

* Fix timeout in UART mode
* Fix timeout and remove useless delay in UART mode
2 changes: 1 addition & 1 deletion pyftdi/serialext/protocol_ftdi.py
Expand Up @@ -73,7 +73,7 @@ def read(self, size=1):
buf = self.udev.read_data(size)
data += buf
size -= len(buf)
if size == 0:
if size <= 0:
break
if self._timeout is not None:
if buf:
Expand Down

0 comments on commit e2d2ffc

Please sign in to comment.