Skip the entire header of the packet, not only the first byte.
This commit is contained in:
parent
a5143d8c7c
commit
c40f67c557
@ -329,7 +329,7 @@ uwatec_memomouse_read_packet_inner (uwatec_memomouse_device_t *device, unsigned
|
||||
|
||||
// Copy the package to the output buffer.
|
||||
if (total - 3 <= size) {
|
||||
memcpy (data, buffer + 1, total - 3);
|
||||
memcpy (data, buffer + 2, total - 3);
|
||||
} else {
|
||||
WARNING ("Insufficient buffer space available.");
|
||||
return DEVICE_STATUS_MEMORY;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user