diff --git a/src/squirrel_split.c b/src/squirrel_split.c index dd8552a..2643077 100644 --- a/src/squirrel_split.c +++ b/src/squirrel_split.c @@ -8,10 +8,10 @@ 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 - (*packet)[6] = keyboard_get_local_modifiers(); // 6th byte - uint16_t consumer = consumer_get_local_consumer_code(); + keyboard_get_keycodes(&local_keycodes); + memcpy(*packet, local_keycodes, 6); // 0th to 5th byte + (*packet)[6] = keyboard_get_modifiers(); // 6th byte + uint16_t consumer = consumer_get_consumer_code(); (*packet)[7] = consumer & 0xFF; // 7th byte (*packet)[8] = consumer >> 8; // 8th byte }