summaryrefslogtreecommitdiff
path: root/protocol/usb_hid/parser.cpp
diff options
context:
space:
mode:
authortmk <nobody@nowhere>2012-08-25 15:49:08 +0900
committertmk <nobody@nowhere>2012-08-28 21:56:15 +0900
commitc5060ea81942b0e3f8577536ff78402a19abe3d3 (patch)
treebcdd4cd269be3064982014b0afdc0aea628d7048 /protocol/usb_hid/parser.cpp
parent9382bf2f765cfbb8f7a9a48157391cac2bb71780 (diff)
test build of 'Host shield' in minimal env.
Diffstat (limited to 'protocol/usb_hid/parser.cpp')
-rw-r--r--protocol/usb_hid/parser.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/protocol/usb_hid/parser.cpp b/protocol/usb_hid/parser.cpp
index cf64322302..b03af8ae41 100644
--- a/protocol/usb_hid/parser.cpp
+++ b/protocol/usb_hid/parser.cpp
@@ -1,15 +1,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)
{
- PORTB ^= (1<<0);
-/*
- Serial.print("KBDReport: ");
+ LED_TX_TOGGLE;
+ debug("KBDReport: ");
for (uint8_t i = 0; i < len; i++) {
- PrintHex<uint8_t>(buf[i]);
- Serial.print(" ");
+ debug_hex(buf[i]);
+ debug(" ");
}
- Serial.print("\r\n");
-*/
- //PORTC &= ~(1<<7);
+ debug("\r\n");
}