mirror of
https://github.com/felis/USB_Host_Shield_2.0.git
synced 2024-03-22 11:31:26 +01:00
Now easier to disable and enable printing of incoming data
This commit is contained in:
parent
ab9338a55e
commit
315af437ed
1 changed files with 8 additions and 4 deletions
12
hidboot.h
12
hidboot.h
|
@ -495,10 +495,14 @@ uint8_t HIDBoot<BOOT_PROTOCOL>::Poll() {
|
|||
if(pRptParser[i])
|
||||
pRptParser[i]->Parse((HID*)this, 0, (uint8_t) read, buf);
|
||||
|
||||
//for (uint8_t i=0; i<read; i++)
|
||||
// PrintHex<uint8_t>(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<uint8_t > (buf[i], 0x80);
|
||||
USB_HOST_SERIAL.write(' ');
|
||||
}
|
||||
if (read)
|
||||
USB_HOST_SERIAL.println();
|
||||
#endif
|
||||
} else {
|
||||
if(rcode != hrNAK) {
|
||||
USBTRACE2("Poll:", rcode);
|
||||
|
|
Loading…
Reference in a new issue