Skip to content

Commit be59e8d

Browse files
committed
fix fragment counting
1 parent 43bca06 commit be59e8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

messages.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def encode_fragment(message):
4646
pdu.append(status)
4747

4848
# payload
49-
start = count * 16
50-
end = (count + 1) * 16
49+
start = i * 16
50+
end = (i + 1) * 16
5151
debug()
5252
pdu.append(message[start:end])
5353

0 commit comments

Comments
 (0)