提交 387cffaf 编写于 作者: O openharmony_ci 提交者: Gitee

!21 适配hdc sn号256位场景

Merge pull request !21 from alex_hold/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册