diff options
Diffstat (limited to 'tmk_core/protocol/lufa/bluetooth.c')
| -rw-r--r-- | tmk_core/protocol/lufa/bluetooth.c | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/tmk_core/protocol/lufa/bluetooth.c b/tmk_core/protocol/lufa/bluetooth.c index 549606162..5eb52860b 100644 --- a/tmk_core/protocol/lufa/bluetooth.c +++ b/tmk_core/protocol/lufa/bluetooth.c | |||
| @@ -21,16 +21,18 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 21 | #include "debug.h" | 21 | #include "debug.h" |
| 22 | #include "bluetooth.h" | 22 | #include "bluetooth.h" |
| 23 | 23 | ||
| 24 | void bluefruit_keyboard_print_report(report_keyboard_t *report) | 24 | void bluefruit_keyboard_print_report(report_keyboard_t *report) { |
| 25 | { | ||
| 26 | if (!debug_keyboard) return; | 25 | if (!debug_keyboard) return; |
| 27 | dprintf("keys: "); for (int i = 0; i < KEYBOARD_REPORT_KEYS; i++) { debug_hex8(report->keys[i]); dprintf(" "); } | 26 | dprintf("keys: "); |
| 28 | dprintf(" mods: "); debug_hex8(report->mods); | 27 | for (int i = 0; i < KEYBOARD_REPORT_KEYS; i++) { |
| 29 | dprintf(" reserved: "); debug_hex8(report->reserved); | 28 | debug_hex8(report->keys[i]); |
| 29 | dprintf(" "); | ||
| 30 | } | ||
| 31 | dprintf(" mods: "); | ||
| 32 | debug_hex8(report->mods); | ||
| 33 | dprintf(" reserved: "); | ||
| 34 | debug_hex8(report->reserved); | ||
| 30 | dprintf("\n"); | 35 | dprintf("\n"); |
| 31 | } | 36 | } |
| 32 | 37 | ||
| 33 | void bluefruit_serial_send(uint8_t data) | 38 | void bluefruit_serial_send(uint8_t data) { serial_send(data); } \ No newline at end of file |
| 34 | { | ||
| 35 | serial_send(data); | ||
| 36 | } \ No newline at end of file | ||
