Browse Source

core: Debug print for system and consumer keys

master
tmk 7 years ago
parent
commit
ec06a3f9f5
1 changed files with 9 additions and 1 deletions
  1. 9
    1
      tmk_core/common/host.c

+ 9
- 1
tmk_core/common/host.c View File

(*driver->send_keyboard)(report); (*driver->send_keyboard)(report);


if (debug_keyboard) { if (debug_keyboard) {
dprint("keyboard_report: ");
dprint("keyboard: ");
for (uint8_t i = 0; i < KEYBOARD_REPORT_SIZE; i++) { for (uint8_t i = 0; i < KEYBOARD_REPORT_SIZE; i++) {
dprintf("%02X ", report->raw[i]); dprintf("%02X ", report->raw[i]);
} }


if (!driver) return; if (!driver) return;
(*driver->send_system)(report); (*driver->send_system)(report);

if (debug_keyboard) {
dprintf("system: %04X\n", report);
}
} }


void host_consumer_send(uint16_t report) void host_consumer_send(uint16_t report)


if (!driver) return; if (!driver) return;
(*driver->send_consumer)(report); (*driver->send_consumer)(report);

if (debug_keyboard) {
dprintf("consumer: %04X\n", report);
}
} }


uint16_t host_last_sysytem_report(void) uint16_t host_last_sysytem_report(void)

Loading…
Cancel
Save