1
0
Fork 0

Prep work for NKRO report separation (#22268)

* Clean up some keyboard/userspace code

* Rename `KEYBOARD_REPORT_BITS` -> `NKRO_REPORT_BITS`

* Add some missing includes

* Use `PACKED` define for report types

* Fix incorrect function signatures for FlexRAM EEPROM driver
This commit is contained in:
Ryan 2023-10-14 22:21:20 +11:00 committed by GitHub
parent 1da7c8c8d0
commit 1bff37781b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 35 additions and 36 deletions

View file

@ -86,13 +86,12 @@ void bluetooth_send_keyboard(report_keyboard_t *report)
send_str(PSTR("AT+BLEKEYBOARDCODE="));
for (uint8_t i = 0; i < KEYBOARD_EPSIZE; i++)
{
send_bytes(report->raw[i]);
if (i < (KEYBOARD_EPSIZE - 1))
{
send_str(PSTR("-"));
}
send_bytes(report->mods);
send_str(PSTR("-"));
send_bytes(0);
for (uint8_t i = 0; i < KEYBOARD_REPORT_KEYS; i++) {
send_str(PSTR("-"));
send_bytes(report->keys[i]);
}
send_str(PSTR("\r\n"));