Skip to content

Commit

Permalink
Fixed encoding 0xFE bytes in the message body
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljonik committed Sep 16, 2022
1 parent 3a7246b commit 06aa048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion satel_integra/satel_integra.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def generate_query(command):
c = checksum(data)
data.append(c >> 8)
data.append(c & 0xFF)
data.replace(b'\xFE', b'\xFE\xF0')
data = data.replace(b'\xFE', b'\xFE\xF0')

data = bytearray.fromhex("FEFE") + data + bytearray.fromhex("FE0D")
return data
Expand Down

0 comments on commit 06aa048

Please sign in to comment.