X-Git-Url: https://git.ao2.it/kinect-audio-setup.git/blobdiff_plain/c264133a0b6589d30b5f3e4b65a09d3c5b9bafaf..67b6e8f64047557a0e65eb7afad8c16a1cb7a8a0:/kinect_upload_fw/kinect_upload_fw.c diff --git a/kinect_upload_fw/kinect_upload_fw.c b/kinect_upload_fw/kinect_upload_fw.c index cf65b5b..1bd4102 100644 --- a/kinect_upload_fw/kinect_upload_fw.c +++ b/kinect_upload_fw/kinect_upload_fw.c @@ -1,5 +1,6 @@ /* * Copyright 2011 Drew Fisher . All rights reserved. + * Copyright (C) 2016 Antonio Ospite * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -294,6 +295,8 @@ int main(int argc, char *argv[]) { } } + libusb_set_auto_detach_kernel_driver(dev, 1); + ret = libusb_claim_interface(dev, KINECT_AUDIO_INTERFACE); if (ret < 0) { fprintf(stderr, "libusb_claim_interface failed: %s\n", @@ -303,7 +306,7 @@ int main(int argc, char *argv[]) { goto out_libusb_close; } - /* + /* * Checking that the configuration has not changed, as suggested in * http://libusb.sourceforge.net/api-1.0/caveats.html */