From 7df8c0635b062dc7bece9d58ccc6bab36c8104ac Mon Sep 17 00:00:00 2001 From: Tommy Olofsson <tommy.olofsson.90@gmail.com> Date: Sun, 19 Jun 2016 22:38:51 +0200 Subject: [PATCH] A few uncommitted lines for finding acks with wrong index. --- simulator/extctrl2014.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/simulator/extctrl2014.py b/simulator/extctrl2014.py index 67af2c5..23782c1 100644 --- a/simulator/extctrl2014.py +++ b/simulator/extctrl2014.py @@ -328,6 +328,9 @@ class ExtCtrl(object): if packet.index == self.ack: self.ack = None self.cond.notify_all() + else: + if self.packetdebug: + print "Unexpected ack %x (exp: %x)" % (packet.index, self.ack) if packet.kind == kind_INIT and self.remote_index == None: decoder = Decoder(packet.data) with self.cond: -- GitLab