1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

tools/lib/: added mechanism to remove USB restrictions (enabling multiple sessions)

- usbopen.h (usb_unrestrict), usbusb.c (usb_unrestrict): drop ID and
  path restrictions
- atusb.c (atusb_open): call usb_unrestrict to remove restrictions
This commit is contained in:
Werner Almesberger
2011-04-10 10:55:49 -03:00
parent 4b07e5c894
commit 4190aded8c
3 changed files with 10 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ static void *atusb_open(const char *arg)
{
usb_dev_handle *dev;
usb_unrestrict();
if (arg)
restrict_usb_path(arg);
dev = open_usb(USB_VENDOR, USB_PRODUCT);