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

@@ -202,6 +202,8 @@ class port:
self.recv_code(5)
# 接收检测结果
self.recv_code(24)
# 回复检测结果
self.send_code(bytearray([0xF0, 0x00, 0x02, 0xE0, 0x41]))
# 开始注码
# self.send_code(bytearray([0xF0, 0x00, 0x02, 0xE0, 0x41, 0xB1, 0x00, 0x02, 0x00, 0xFB]))
# # 接收指令应答