diff options
author | tmk <nobody@nowhere> | 2012-08-25 15:49:08 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2012-08-28 21:56:15 +0900 |
commit | c5060ea81942b0e3f8577536ff78402a19abe3d3 (patch) | |
tree | bcdd4cd269be3064982014b0afdc0aea628d7048 /protocol/usb_hid/parser.cpp | |
parent | 9382bf2f765cfbb8f7a9a48157391cac2bb71780 (diff) | |
download | qmk_firmware-c5060ea81942b0e3f8577536ff78402a19abe3d3.tar.gz qmk_firmware-c5060ea81942b0e3f8577536ff78402a19abe3d3.zip |
test build of 'Host shield' in minimal env.
Diffstat (limited to 'protocol/usb_hid/parser.cpp')
-rw-r--r-- | protocol/usb_hid/parser.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/protocol/usb_hid/parser.cpp b/protocol/usb_hid/parser.cpp index cf6432230..b03af8ae4 100644 --- a/protocol/usb_hid/parser.cpp +++ b/protocol/usb_hid/parser.cpp | |||
@@ -1,15 +1,14 @@ | |||
1 | #include "parser.h" | 1 | #include "parser.h" |
2 | #include "leonardo_led.h" | ||
3 | #include "debug.h" | ||
2 | 4 | ||
3 | void KBDReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf) | 5 | void KBDReportParser::Parse(HID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf) |
4 | { | 6 | { |
5 | PORTB ^= (1<<0); | 7 | LED_TX_TOGGLE; |
6 | /* | 8 | debug("KBDReport: "); |
7 | Serial.print("KBDReport: "); | ||
8 | for (uint8_t i = 0; i < len; i++) { | 9 | for (uint8_t i = 0; i < len; i++) { |
9 | PrintHex<uint8_t>(buf[i]); | 10 | debug_hex(buf[i]); |
10 | Serial.print(" "); | 11 | debug(" "); |
11 | } | 12 | } |
12 | Serial.print("\r\n"); | 13 | debug("\r\n"); |
13 | */ | ||
14 | //PORTC &= ~(1<<7); | ||
15 | } | 14 | } |