Skip to content

Commit 53bcf9a

Browse files
committed
Fix checksum error when downloading
1 parent 20bf112 commit 53bcf9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

zoomzt2.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def file_download(self, name):
342342
#decode received data
343343
packet = msg.data
344344
length = int(packet[9]) * 128 + int(packet[8])
345-
if length == 0:
345+
if packet[4] != 4 or length == 0:
346346
break
347347
block = self.unpack(packet[10:10 + length + int(length/7) + 1])
348348

0 commit comments

Comments
 (0)