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:
|
while self.reader_alive:
|
||||||
c = self.port.read()
|
c = self.port.read()
|
||||||
if c == b"\r":
|
if c == b"\r":
|
||||||
sys.stdout.write(b"\n")
|
sys.stdout.buffer.write(b"\n")
|
||||||
else:
|
else:
|
||||||
sys.stdout.buffer.write(c)
|
sys.stdout.buffer.write(c)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
|
|
Loading…
Reference in New Issue