Commit 789b33d3 authored by Jens Krüger's avatar Jens Krüger Committed by Jens Krueger
Browse files

Termotek: Fix array comparison

Change-Id: I63e2309c03a9b0e40d71a5d31fe6de3dd6cad1b9
Reviewed-on: https://forge.frm2.tum.de/review/c/frm2/tango/entangle/+/26480

Tested-by: default avatarJenkins Automated Tests <pedersen+jenkins@frm2.tum.de>
Reviewed-by: default avatarJens Krueger <jens.krueger@frm2.tum.de>
parent 210a8fef
......@@ -85,7 +85,7 @@ class TermotekBase(object):
raise CommunicationFailure('Received data has unexpected length')
if reply[3] != self.addr:
raise CommunicationFailure('Destination address unexpected')
if reply[4:6] != cmd:
if (reply[4:6] != cmd).all():
raise CommunicationFailure('Reply does not fit request cmd')
return reply[6:-1]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment