aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2014-10-01 18:21:27 +0200
committerjaseg <code@jaseg.net>2014-10-01 18:21:27 +0200
commite36a4054f18973980a9321e84fd79ea38793a6a4 (patch)
tree26a7ba30b2b0999f2387fa86a01299bd7f903fe4
parentc06bdd273ef6589b7975213e252c3317f5fdeffe (diff)
downloadmatelight-e36a4054f18973980a9321e84fd79ea38793a6a4.tar.gz
matelight-e36a4054f18973980a9321e84fd79ea38793a6a4.tar.bz2
matelight-e36a4054f18973980a9321e84fd79ea38793a6a4.zip
Removed static noise foo, added a few sleeps
-rwxr-xr-xhost/server.py5
1 files changed, 4 insertions, 1 deletions
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)