Skip to content

Commit

Permalink
XBOXOLD: make use of printReport instead of open coding it
Browse files Browse the repository at this point in the history
Signed-off-by: Albert Herranz <[email protected]>
  • Loading branch information
herraa1 committed Jul 15, 2024
1 parent d459f58 commit 1f4222c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions XBOXOLD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,7 @@ uint8_t XBOXOLD::Poll() {
if(!rcode) {
readReport();
#ifdef PRINTREPORT // Uncomment "#define PRINTREPORT" to print the report send by the Xbox ONE Controller
for(uint8_t i = 0; i < length; i++) {
D_PrintHex<uint8_t > (readBuf[i], 0x80);
Notify(PSTR(" "), 0x80);
}
Notify(PSTR("\r\n"), 0x80);
printReport(length);
#endif
}
#ifdef DEBUG_USB_HOST
Expand Down

0 comments on commit 1f4222c

Please sign in to comment.