usb_usb: Clean print for debug
This commit is contained in:
parent
13e115b352
commit
108b0ce8d9
2 changed files with 8 additions and 20 deletions
|
|
@ -1,16 +1,16 @@
|
|||
#include "parser.h"
|
||||
#include "usb_hid.h"
|
||||
|
||||
#include "debug.h"
|
||||
#include "print.h"
|
||||
|
||||
|
||||
void KBDReportParser::Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *buf)
|
||||
{
|
||||
dprintf("input %d:", hid->GetAddress());
|
||||
xprintf("input %d:", hid->GetAddress());
|
||||
for (uint8_t i = 0; i < len; i++) {
|
||||
dprintf(" %02X", buf[i]);
|
||||
xprintf(" %02X", buf[i]);
|
||||
}
|
||||
dprint("\r\n");
|
||||
xprintf("\r\n");
|
||||
|
||||
// Rollover error
|
||||
// Cherry: 0101010101010101
|
||||
|
|
@ -18,7 +18,7 @@ void KBDReportParser::Parse(USBHID *hid, bool is_rpt_id, uint8_t len, uint8_t *b
|
|||
// Apple: 0000010101010101
|
||||
// https://geekhack.org/index.php?topic=69169.msg2760969#msg2760969
|
||||
if (buf[2] == 0x01) {
|
||||
dprint("Rollover error: ignored\r\n");
|
||||
xprintf("Rollover error: ignored\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue