nicer hex output in debug

This commit is contained in:
Raphael Assenat 2015-11-03 23:48:48 -05:00
parent d22640c234
commit 24547c3816
1 changed files with 2 additions and 2 deletions

View File

@ -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