Skip to content

Commit f46fa65

Browse files
SirDifferentialxlz
authored andcommitted
usb: Select UsbDk with libusb_set_option
1 parent e030825 commit f46fa65

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libfreenect2.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,10 @@ class Freenect2Impl
370370
LOG_ERROR << "failed to create usb context: " << WRITE_LIBUSB_ERROR(r);
371371
return;
372372
}
373+
374+
#if defined(_WIN32) || defined (__WIN32__) || defined(__WINDOWS__)
375+
(void)libusb_set_option(usb_context_, LIBUSB_OPTION_USE_USBDK);
376+
#endif
373377
}
374378

375379
usb_event_loop_.start(usb_context_);

0 commit comments

Comments
 (0)