1
0
This repo is archived. You can view files and clone it, but cannot push or open issues or pull requests.
tmk_keyboard_custom/protocol/usb_hid/parser.cpp

15 lines
308 B
C++
Raw Normal View History

#include "parser.h"
#include "leonardo_led.h"
#include "debug.h"
void KBDReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
{
LED_TX_TOGGLE;
debug("KBDReport: ");
for (uint8_t i = 0; i < len; i++) {
debug_hex(buf[i]);
debug(" ");
}
debug("\r\n");
}