From: Matt Webb Date: Fri, 26 Sep 2014 08:46:16 +0000 (+0100) Subject: bug fix in handling device command response X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=80e3c49053cfff5c80266a2d12d75447868dd6ce;p=sirius.git bug fix in handling device command response --- diff --git a/app/core/command_sender.py b/app/core/command_sender.py index 784e86a..f23dcab 100644 --- a/app/core/command_sender.py +++ b/app/core/command_sender.py @@ -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 = []