From 8f3f3cea26f03d5c3979dd594ff02e7d6d49da54 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Fri, 22 May 2009 13:13:35 +0200 Subject: * tools/trace: - stop dump at end of trace. --- host/proto/proto.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host') diff --git a/host/proto/proto.py b/host/proto/proto.py index e5f0af21..8856a584 100644 --- a/host/proto/proto.py +++ b/host/proto/proto.py @@ -150,6 +150,10 @@ class Proto: h = self.handlers[key] h[0] (*(frame.decode (h[1]))) + def flush (self): + """Drop any pending frames.""" + self.send_queue = [ ] + class Frame: def __init__ (self, command = None, fmt = '', *args): -- cgit v1.2.3