From 0ed7852779fd0d8185e784b103116ca21cecb571 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Thu, 22 Apr 2021 17:05:07 +0200 Subject: [PATCH] tools/litex_term: Add time.sleep on BridgeUART to avoid high CPU usage. --- litex/tools/litex_term.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litex/tools/litex_term.py b/litex/tools/litex_term.py index bd0f670ad..9b7a92fad 100755 --- a/litex/tools/litex_term.py +++ b/litex/tools/litex_term.py @@ -122,6 +122,7 @@ class BridgeUART: elif not self.rxempty.read(): length = 1 else: + time.sleep(1e-3) continue r = self.bus.read(self.rxtx.addr, length=length, burst="fixed") for v in r: