goodixmoc: fix package crc error
fix package length type convert error
This commit is contained in:
parent
0d9d7dcb46
commit
0ff7a07671
1 changed files with 1 additions and 1 deletions
|
@ -229,7 +229,7 @@ gx_proto_parse_header (
|
||||||
|
|
||||||
memcpy (pheader, buffer, sizeof (pack_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;
|
pheader->len -= PACKAGE_CRC_SIZE;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue