Commit 114d3db7 authored by Jens Krüger's avatar Jens Krüger Committed by Georg Brandl
Browse files

Termotek: Fix reply check

Change-Id: If603726ab0c3c1aaffb6fbb431cfb25e2e38cbfc

Tested-by: default avatarJenkins Automated Tests <>
Reviewed-by: default avatarGeorg Brandl <>
parent 7a50c906
......@@ -87,7 +87,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).all():
if (reply[4:6] != cmd).any():
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