From 88166014859c09f6ad6a93f0862bdcc4e46dc87e Mon Sep 17 00:00:00 2001 From: Mert Date: Thu, 26 Oct 2017 02:03:11 +0300 Subject: [PATCH] raspberry pi3 fix (#530) Signed-off-by: mertg Reviewed-by: Benn Snyder --- src/flags.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flags.c b/src/flags.c index f0cb9772..0096b7cc 100644 --- a/src/flags.c +++ b/src/flags.c @@ -168,6 +168,7 @@ FN_INTERNAL int send_cmd(freenect_device *dev, uint16_t cmd, void *cmdbuf, unsig do { actual_len = fnusb_control(&dev->usb_cam, 0xc0, 0, 0, 0, ibuf, 0x200); FN_FLOOD("send_cmd: actual length = %d\n", actual_len); + usleep(1); } while ((actual_len == 0) || (actual_len == 0x200)); FN_SPEW("Control reply: %d\n", res); if (actual_len < (int)sizeof(*rhdr)) {