diff --git a/src/squirrel_split.c b/src/squirrel_split.c index 4b75a69..a911563 100644 --- a/src/squirrel_split.c +++ b/src/squirrel_split.c @@ -21,7 +21,7 @@ uint8_t remote_modifiers = 0; uint16_t remote_consumer_code = 0; void process_packet(uint8_t (*packet)[9]) { - memcpy(remote_keycodes, *packet, 6); // 0th to 5th byte + memcpy(remote_keycodes, packet, 6); // 0th to 5th byte remote_modifiers = (*packet)[6]; // 6th byte remote_consumer_code = (*packet)[7] | ((*packet)[8] << 8); // 7th and 8th byte }