soc/tools/litex_term.py: fix reader for c = b"\r" case
This commit is contained in:
parent
30f7dd69bd
commit
ab5b9389b7
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue