summaryrefslogtreecommitdiff
path: root/protocol/usb_hid/parser.cpp
blob: b03af8ae41e843c7e234e2252986685065146382 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#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");
}