Skip to content

Commit 958144d

Browse files
committed
core: Debug print for system and consumer keys
1 parent e7e1030 commit 958144d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

common/host.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void host_keyboard_send(report_keyboard_t *report)
5454
(*driver->send_keyboard)(report);
5555

5656
if (debug_keyboard) {
57-
dprint("keyboard_report: ");
57+
dprint("keyboard: ");
5858
for (uint8_t i = 0; i < KEYBOARD_REPORT_SIZE; i++) {
5959
dprintf("%02X ", report->raw[i]);
6060
}
@@ -75,6 +75,10 @@ void host_system_send(uint16_t report)
7575

7676
if (!driver) return;
7777
(*driver->send_system)(report);
78+
79+
if (debug_keyboard) {
80+
dprintf("system: %04X\n", report);
81+
}
7882
}
7983

8084
void host_consumer_send(uint16_t report)
@@ -84,6 +88,10 @@ void host_consumer_send(uint16_t report)
8488

8589
if (!driver) return;
8690
(*driver->send_consumer)(report);
91+
92+
if (debug_keyboard) {
93+
dprintf("consumer: %04X\n", report);
94+
}
8795
}
8896

8997
uint16_t host_last_sysytem_report(void)

0 commit comments

Comments
 (0)