Skip to content

Commit

Permalink
posix: in read, count length of converted data, fixes #178
Browse files Browse the repository at this point in the history
  • Loading branch information
zsquareplusc committed Nov 9, 2016
1 parent 9e20574 commit 0c7077a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serial/serialposix.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ def write(self, data):
# still calculate and check timeout
if timeout.expired():
raise writeTimeoutError
return len(data)
return len(d)

def flush(self):
"""\
Expand Down

0 comments on commit 0c7077a

Please sign in to comment.