Skip to content

Commit

Permalink
fix: missing referance for memcpy
Browse files Browse the repository at this point in the history
  • Loading branch information
headblockhead committed Dec 12, 2024
1 parent 5d32600 commit 9b454d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/squirrel_split.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9b454d9

Please sign in to comment.