summaryrefslogtreecommitdiff
path: root/host/proto
diff options
context:
space:
mode:
authorNicolas Schodet2009-05-22 13:13:35 +0200
committerNicolas Schodet2009-05-22 13:13:35 +0200
commit8f3f3cea26f03d5c3979dd594ff02e7d6d49da54 (patch)
tree73525621e71ca89e095c3c459ef9a5d4a9bd3703 /host/proto
parentaeffe6cdb98abebed2fff0748800123865c00a38 (diff)
* tools/trace:
- stop dump at end of trace.
Diffstat (limited to 'host/proto')
-rw-r--r--host/proto/proto.py4
1 files changed, 4 insertions, 0 deletions
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):