Made it easy to disable printing incoming data in hiduniversal

This commit is contained in:
Kristian Lauszus 2014-02-03 23:11:44 +01:00
parent 7806212132
commit b25c7d2f3c

View file

@ -381,14 +381,14 @@ uint8_t HIDUniversal::Poll() {
if(identical) if(identical)
return 0; return 0;
#if 1
Notify(PSTR("\r\nBuf: "), 0x80); Notify(PSTR("\r\nBuf: "), 0x80);
for(uint8_t i = 0; i < read; i++) for(uint8_t i = 0; i < read; i++)
D_PrintHex<uint8_t > (buf[i], 0x80); D_PrintHex<uint8_t > (buf[i], 0x80);
Notify(PSTR("\r\n"), 0x80); Notify(PSTR("\r\n"), 0x80);
#endif
ParseHIDData(this, bHasReportId, (uint8_t)read, buf); ParseHIDData(this, bHasReportId, (uint8_t)read, buf);
HIDReportParser *prs = GetReportParser(((bHasReportId) ? *buf : 0)); HIDReportParser *prs = GetReportParser(((bHasReportId) ? *buf : 0));