From 66c84c6415b2f0527ece8d4e3bfe632810f2e182 Mon Sep 17 00:00:00 2001 From: Kai Lauterbach Date: Mon, 5 Dec 2011 20:37:10 +0100 Subject: [PATCH] Some sleep call's added. --- client/test.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/test.c b/client/test.c index 6e03b0b..2d76f9e 100644 --- a/client/test.c +++ b/client/test.c @@ -79,10 +79,16 @@ int vid, pid; int i = 0; for (i = 0; i < 27; i++) + { usb_control_msg(handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT, CUSTOM_RQ_SET_STATUS, 1, i, buffer, 0, 300); + sleep(1); + } for (i = 26; i >= 0; i--) + { usb_control_msg(handle, USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_ENDPOINT_OUT, CUSTOM_RQ_SET_STATUS, 0, i, buffer, 0, 300); + sleep(1); + } usb_close(handle); return 0;