From ec06a3f9f5c72e074f169ef6c8f44f150088c6e9 Mon Sep 17 00:00:00 2001 From: tmk Date: Tue, 18 Oct 2016 14:34:47 +0900 Subject: [PATCH] core: Debug print for system and consumer keys --- tmk_core/common/host.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tmk_core/common/host.c b/tmk_core/common/host.c index e9b79167..e1fa52d7 100644 --- a/tmk_core/common/host.c +++ b/tmk_core/common/host.c @@ -54,7 +54,7 @@ void host_keyboard_send(report_keyboard_t *report) (*driver->send_keyboard)(report); if (debug_keyboard) { - dprint("keyboard_report: "); + dprint("keyboard: "); for (uint8_t i = 0; i < KEYBOARD_REPORT_SIZE; i++) { dprintf("%02X ", report->raw[i]); } @@ -75,6 +75,10 @@ void host_system_send(uint16_t report) if (!driver) return; (*driver->send_system)(report); + + if (debug_keyboard) { + dprintf("system: %04X\n", report); + } } void host_consumer_send(uint16_t report) @@ -84,6 +88,10 @@ void host_consumer_send(uint16_t report) if (!driver) return; (*driver->send_consumer)(report); + + if (debug_keyboard) { + dprintf("consumer: %04X\n", report); + } } uint16_t host_last_sysytem_report(void) -- 2.39.3