]> git.aero2k.de Git - sirius.git/commitdiff
bug fix in handling device command response
authorMatt Webb <matt@interconnected.org>
Fri, 26 Sep 2014 08:46:16 +0000 (09:46 +0100)
committerMatt Webb <matt@interconnected.org>
Fri, 26 Sep 2014 08:46:16 +0000 (09:46 +0100)
app/core/command_sender.py

index 784e86a7e9eb5d5d1b5315e0caca3d503762cc6b..f23dcabd39eb69d39e0fb455e8ba29317f20546e 100644 (file)
@@ -119,7 +119,7 @@ class _CommandQueue(object):
                if self.device_pending[da][0] == command.id:
                        self.device_pending[da] = None
                self.device_queue[da] = \
-                       [c for c in self.device_queue[da] if c.id != command.id]
+                       [c for c in self.device_queue[da] if c[0] != command.id]
        
        def prepare_commands_to_send(self):
                commands_to_send = []