From 9b454d9901294fe51c22f0bbf6745a313751bdca Mon Sep 17 00:00:00 2001 From: Edward Hesketh Date: Thu, 12 Dec 2024 16:38:26 +0000 Subject: [PATCH] fix: missing referance for memcpy --- src/squirrel_split.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/squirrel_split.c b/src/squirrel_split.c index 8352609..dd8552a 100644 --- a/src/squirrel_split.c +++ b/src/squirrel_split.c @@ -9,7 +9,7 @@ void get_packet(uint8_t (*packet)[9]) { memset(*packet, 0, 9); uint8_t local_keycodes[6] = {0}; keyboard_get_local_keycodes(&local_keycodes); - memcpy(packet, local_keycodes, 6); // 0th to 5th byte + memcpy(*packet, local_keycodes, 6); // 0th to 5th byte (*packet)[6] = keyboard_get_local_modifiers(); // 6th byte uint16_t consumer = consumer_get_local_consumer_code(); (*packet)[7] = consumer & 0xFF; // 7th byte