mirror of
https://github.com/raphnet/gc_n64_usb-v3
synced 2024-12-21 23:08:53 -05:00
nicer hex output in debug
This commit is contained in:
parent
d22640c234
commit
24547c3816
@ -45,7 +45,7 @@ uint8_t hiddata_set_report(const struct usb_request *rq, const uint8_t *dat, uin
|
||||
int i;
|
||||
printf_P(PSTR("Set data %d\n"), len);
|
||||
for (i=0; i<len; i++) {
|
||||
printf_P(PSTR("0x%02x "), dat[i]);
|
||||
printf_P(PSTR("%02x "), dat[i]);
|
||||
}
|
||||
printf_P(PSTR("\r\n"));
|
||||
#endif
|
||||
@ -120,7 +120,7 @@ static void hiddata_processCommandBuffer(void)
|
||||
#ifdef DEBUG
|
||||
printf("Pending data %d\n", cmdbuf_len);
|
||||
for (i=0; i<cmdbuf_len; i++) {
|
||||
printf("0x%02x ", cmdbuf[i]);
|
||||
printf("%02x ", cmdbuf[i]);
|
||||
}
|
||||
printf("\r\n");
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user