summaryrefslogtreecommitdiff
path: root/pc
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-11-29 18:15:21 +0100
committerFlorian Jung <flo@windfisch.org>2015-11-29 18:15:21 +0100
commitfe742e35d3fa6d69125e9f463cbbe1c6032969ca (patch)
treec51a579de6498295cdb2e80edcdb9a162305e81a /pc
parent84b980994934d54b3dad6dd2184830f4464b9933 (diff)
meeh
Diffstat (limited to 'pc')
-rwxr-xr-xpc/a.outbin12696 -> 12744 bytes
-rw-r--r--pc/usbtest.c5
2 files changed, 4 insertions, 1 deletions
diff --git a/pc/a.out b/pc/a.out
index f1b6c1b..fbba741 100755
--- a/pc/a.out
+++ b/pc/a.out
Binary files differ
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,