Skip to content

Commit

Permalink
Merge pull request #368 from felipediel/bytearray
Browse files Browse the repository at this point in the history
Replace bytes with bytearray
  • Loading branch information
mjg59 authored May 24, 2020
2 parents afb0c3d + dec2b68 commit 749cfef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broadlink/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ def check_data(self):

def send_data(self, data):
packet = bytearray(self._code_sending_header)
packet += bytes([0x02, 0x00, 0x00, 0x00])
packet += bytearray([0x02, 0x00, 0x00, 0x00])
packet += data
response = self.send_packet(0x6a, packet)
check_error(response[0x22:0x24])
Expand Down

0 comments on commit 749cfef

Please # to comment.