Skip to content

Commit 67595a1

Browse files
committed
fix: pop first byte of request while splitting
We should pass position to `pop()` to remove first element of array. Fix #92
1 parent 552f7f9 commit 67595a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tion_btle/light_family.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def chunks(lst, n):
105105
for j in range(0, len(lst), n):
106106
yield lst[j:j + n]
107107

108-
request.pop()
108+
request.pop(0)
109109

110110
if len(request) < 20:
111111
request.insert(0, self.SINGLE_PACKET_ID)

0 commit comments

Comments
 (0)