changeset 3:7bf4d4265339

Pop off the packets we test with.
author darius@inchoate.localdomain
date Tue, 30 Oct 2007 21:29:00 +1030
parents 50a87dd3614d
children ed7abe6f59c2
files zb.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/zb.py	Tue Oct 30 21:18:12 2007 +1030
+++ b/zb.py	Tue Oct 30 21:29:00 2007 +1030
@@ -182,6 +182,8 @@
 adctest = ['~', '\x00', '\x0c', '\x83', '\x00', '\x05', '$', '\x00', '\x01', '\x02', '\x0e', '\x00', '\x0e', '\x03', '\xff', '2' ]
 up = Packets()
 up.process(goodtest)
-#up.process(badtest)
-p = up.pktq.pop(0)
+up.process(badtest)
+up.process(adctest)
+print up.pktq.pop(0)
+print up.pktq.pop(0)