From e36a4054f18973980a9321e84fd79ea38793a6a4 Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 1 Oct 2014 18:21:27 +0200 Subject: Removed static noise foo, added a few sleeps --- host/server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/host/server.py b/host/server.py index 2660f42..025d534 100755 --- a/host/server.py +++ b/host/server.py @@ -162,15 +162,18 @@ if __name__ == '__main__': renderer = userver else: static_noise = time() % 300 < 60 - if static_noise: + if False: foo = os.urandom(640) frame = bytes([v for c in zip(list(foo), list(foo), list(foo)) for v in c ]) + sleep(0.05) else: frame = next(defaulttexts) + sleep(0.05) sendframe(frame) #printframe(next(defaulttexts)) continue for frame in renderer: sendframe(frame) + sleep(0.05) #printframe(frame) -- cgit