提交 d83a64e3 编写于 作者: A alex_hold 提交者: Gitee

解决hdc sn号256位问题

上级 b1da5a73
......@@ -1056,8 +1056,8 @@ class HdcHelper:
reply_size = struct.unpack(">I12s24s", reply)
banner_str = b'OHOS HDC'
connect_key = connect_key.encode("utf-8")
size = struct.calcsize('12s24s')
fmt = "!I12s24s"
size = struct.calcsize('12s256s')
fmt = "!I12s256s"
pack_cmd = struct.pack(fmt, size, banner_str, connect_key)
HdcHelper.write(connection, pack_cmd)
return True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册