diff options
author | Ryan <[email protected]> | 2023-10-14 22:21:20 +1100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-10-14 13:21:20 +0200 |
commit | 1bff37781bda1d0c285aa5aa7102d6941ad64e7d (patch) | |
tree | 6348d64c7d7bba987e8bb386768fde33f33ace18 /keyboards/bioi | |
parent | 1da7c8c8d0c70c9f614ce898ee3380db0f04fa27 (diff) | |
download | qmk_firmware-1bff37781bda1d0c285aa5aa7102d6941ad64e7d.tar.gz qmk_firmware-1bff37781bda1d0c285aa5aa7102d6941ad64e7d.zip |
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
Diffstat (limited to 'keyboards/bioi')
-rw-r--r-- | keyboards/bioi/bluetooth_custom.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/keyboards/bioi/bluetooth_custom.c b/keyboards/bioi/bluetooth_custom.c index 7d88a837d1..4ea277f731 100644 --- a/keyboards/bioi/bluetooth_custom.c +++ b/keyboards/bioi/bluetooth_custom.c @@ -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")); |