1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-21 22:51:41 +01:00

Merge pull request #368 from felipediel/bytearray

Replace bytes with bytearray
This commit is contained in:
Matthew Garrett 2020-05-24 12:10:52 -07:00 committed by GitHub
commit 749cfef1eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -604,7 +604,7 @@ class rm(device):
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])