summaryrefslogtreecommitdiff
path: root/pc/usbtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'pc/usbtest.c')
-rw-r--r--pc/usbtest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/pc/usbtest.c b/pc/usbtest.c
index 002add4..148fc16 100644
--- a/pc/usbtest.c
+++ b/pc/usbtest.c
@@ -134,7 +134,10 @@ int main(int argc, char **argv)
nBytes = usb_control_msg(handle,
USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_IN,
0x21, 0, 0, (char *)buffer, sizeof(buffer), 1000);
- printf("Got %d bytes: %s;\n", nBytes, buffer);
+ printf("Got %d bytes: %s = \n", nBytes, buffer);
+ for (int i=0; i<nBytes; i++)
+ printf("%.2X ",buffer[i] & 0xFF);
+ printf("\n");
// write to device
nBytes = usb_control_msg(handle,