From 7d18060a58b213e98ccc59ab16f6effc7faaa833 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 3 Jan 2016 21:45:33 +0100 Subject: host/viewer: Now runs at all, and does not exit on timeout --- host/viewer.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'host') diff --git a/host/viewer.py b/host/viewer.py index 06a624a..9862961 100755 --- a/host/viewer.py +++ b/host/viewer.py @@ -2,6 +2,7 @@ import argparse import atexit +from contextlib import suppress import bdf import crap @@ -18,7 +19,8 @@ if __name__ == '__main__': udp_server = crap.CRAPServer(args.addr, args.port, blocking=True, log=lambda *_a: None) with suppress(KeyboardInterrupt): - for _title, frame in udp_server: - bdf.printframe(frame) + while True: + for _title, frame in udp_server: + bdf.printframe(frame) udp_server.close() -- cgit