soc/tools/litex_term.py: fix reader for c = b"\r" case

This commit is contained in:
Florent Kermarrec 2017-01-11 01:56:10 +01:00
parent 30f7dd69bd
commit ab5b9389b7
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ class LiteXTerm:
while self.reader_alive:
c = self.port.read()
if c == b"\r":
sys.stdout.write(b"\n")
sys.stdout.buffer.write(b"\n")
else:
sys.stdout.buffer.write(c)
sys.stdout.flush()