updata.py 添加对.pkt文件的支持

This commit is contained in:
ranchuan
2023-10-16 18:54:06 +08:00
parent 5ee17b6ce2
commit 67f240b109
4 changed files with 12 additions and 7 deletions

View File

@@ -229,7 +229,7 @@ class handle:
with open(name,"rb") as f:
self.data=f.read()
self.name=f.name.split('/')[-1]
print("file:{d1},crc32={d2}".format(d1=self.name,d2=hex(crc32(self.data))))
# print("file:{d1},crc32={d2}".format(d1=self.name,d2=hex(crc32(self.data))))
self.stat=0
self.packet_all=(len(self.data)+199)//200
self.sent_bytes=0