提交 5159e6c9 编写于 作者: A alex_hold 提交者: Gitee

适配hdc

上级 387cffaf
......@@ -1052,8 +1052,8 @@ class HdcHelper:
@staticmethod
def handle_shake(connection, connect_key=""):
reply = HdcHelper.read(connection, 40)
reply_size = struct.unpack(">I12s24s", reply)
reply = HdcHelper.read(connection, 48)
reply_size = struct.unpack(">I12s32s", reply)
banner_str = b'OHOS HDC'
connect_key = connect_key.encode("utf-8")
size = struct.calcsize('12s256s')
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册