From 19fda3364ae1e2c96a77331fb19c4b8efd56d927 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 8 Jan 2021 13:56:34 +0100 Subject: [PATCH] tools/litex_term: fix 100% cpu load after refactoring (thanks sergpolkin). --- litex/tools/litex_term.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/litex/tools/litex_term.py b/litex/tools/litex_term.py index a81a97870..bdf2ca8a5 100755 --- a/litex/tools/litex_term.py +++ b/litex/tools/litex_term.py @@ -496,7 +496,8 @@ def main(): term.console.configure() try: term.start() - while True: pass + while True: + time.sleep(0.1) except: if bridge_cls is not None: bridge.close()