From c5060ea81942b0e3f8577536ff78402a19abe3d3 Mon Sep 17 00:00:00 2001 From: tmk Date: Sat, 25 Aug 2012 15:49:08 +0900 Subject: test build of 'Host shield' in minimal env. --- protocol/usb_hid/parser.cpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'protocol/usb_hid/parser.cpp') 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 @@ #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(buf[i]); - Serial.print(" "); + debug_hex(buf[i]); + debug(" "); } - Serial.print("\r\n"); -*/ - //PORTC &= ~(1<<7); + debug("\r\n"); } -- cgit v1.2.3