Now easier to disable and enable printing of incoming data

This commit is contained in:
Kristian Lauszus 2013-12-01 17:06:32 +01:00
parent ab9338a55e
commit 315af437ed

View file

@ -495,10 +495,14 @@ uint8_t HIDBoot<BOOT_PROTOCOL>::Poll() {
if(pRptParser[i]) if(pRptParser[i])
pRptParser[i]->Parse((HID*)this, 0, (uint8_t) read, buf); pRptParser[i]->Parse((HID*)this, 0, (uint8_t) read, buf);
//for (uint8_t i=0; i<read; i++) #if 0 // Set this to 1 to print the incoming data
// PrintHex<uint8_t>(buf[i]); for (uint8_t i=0; i < read; i++) {
//if (read) PrintHex<uint8_t > (buf[i], 0x80);
// USB_HOST_SERIAL.println(""); USB_HOST_SERIAL.write(' ');
}
if (read)
USB_HOST_SERIAL.println();
#endif
} else { } else {
if(rcode != hrNAK) { if(rcode != hrNAK) {
USBTRACE2("Poll:", rcode); USBTRACE2("Poll:", rcode);