tools/litex_term: fix 100% cpu load after refactoring (thanks sergpolkin).

This commit is contained in:
Florent Kermarrec 2021-01-08 13:56:34 +01:00
parent 5f9c4a4ab4
commit 19fda3364a

View file

@ -496,7 +496,8 @@ def main():
term.console.configure() term.console.configure()
try: try:
term.start() term.start()
while True: pass while True:
time.sleep(0.1)
except: except:
if bridge_cls is not None: if bridge_cls is not None:
bridge.close() bridge.close()