From 315af437ed63cb7976afe1edb0acbbdbfba17d15 Mon Sep 17 00:00:00 2001 From: Kristian Lauszus Date: Sun, 1 Dec 2013 17:06:32 +0100 Subject: [PATCH] Now easier to disable and enable printing of incoming data --- hidboot.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/hidboot.h b/hidboot.h index 826e8e72..42224c68 100644 --- a/hidboot.h +++ b/hidboot.h @@ -495,10 +495,14 @@ uint8_t HIDBoot::Poll() { if(pRptParser[i]) pRptParser[i]->Parse((HID*)this, 0, (uint8_t) read, buf); - //for (uint8_t i=0; i(buf[i]); - //if (read) - // USB_HOST_SERIAL.println(""); +#if 0 // Set this to 1 to print the incoming data + for (uint8_t i=0; i < read; i++) { + PrintHex (buf[i], 0x80); + USB_HOST_SERIAL.write(' '); + } + if (read) + USB_HOST_SERIAL.println(); +#endif } else { if(rcode != hrNAK) { USBTRACE2("Poll:", rcode);