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

Tested-by: default avatarJenkins Automated Tests <>
Reviewed-by: default avatarJens Krueger <>
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]
Supports Markdown
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