Commit 0ff7a076 authored by Qiangguo Feng's avatar Qiangguo Feng 💬 Committed by Benjamin Berg
Browse files

goodixmoc: fix package crc error

fix package length type convert error
parent 0d9d7dcb
......@@ -229,7 +229,7 @@ gx_proto_parse_header (
memcpy (pheader, buffer, sizeof (pack_header));
pheader->len = GUINT16_FROM_LE (*(buffer + 4));
pheader->len = GUINT16_FROM_LE ( *(uint16_t *) (buffer + 4));
pheader->len -= PACKAGE_CRC_SIZE;
return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment