Skip to content

Commit

Permalink
fix: attempt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
headblockhead committed Nov 3, 2024
1 parent e793c86 commit 4d6131e
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 @@ -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
}

0 comments on commit 4d6131e

Please sign in to comment.