summaryrefslogtreecommitdiff
path: root/usrp/host/apps
diff options
context:
space:
mode:
authorttsou2009-08-26 10:46:56 -0400
committerttsou2009-09-15 18:06:27 -0400
commitbdec6a37a474b961389e0ac590d0582e490ffb2c (patch)
tree36e30e3d76bd25a8ec332106bfedcae43d33c7ba /usrp/host/apps
parent117bee2b2b88b5d348db1a8f6beb28de8340f407 (diff)
downloadgnuradio-bdec6a37a474b961389e0ac590d0582e490ffb2c.tar.gz
gnuradio-bdec6a37a474b961389e0ac590d0582e490ffb2c.tar.bz2
gnuradio-bdec6a37a474b961389e0ac590d0582e490ffb2c.zip
Modify apps and swig to reflect libusb_context use
Diffstat (limited to 'usrp/host/apps')
-rw-r--r--usrp/host/apps/usrper.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/usrp/host/apps/usrper.cc b/usrp/host/apps/usrper.cc
index 1c4beb713..9c6403c9d 100644
--- a/usrp/host/apps/usrper.cc
+++ b/usrp/host/apps/usrper.cc
@@ -191,10 +191,10 @@ main (int argc, char **argv)
const char *cmd = argv[optind++];
nopts--;
- usrp_one_time_init ();
+ libusb_context *ctx = usrp_one_time_init (true);
- struct libusb_device *udev = usrp_find_device (which_board, fx2_ok_p);
+ struct libusb_device *udev = usrp_find_device (which_board, fx2_ok_p, ctx);
if (udev == 0){
fprintf (stderr, "%s: failed to find usrp[%d]\n", prog_name, which_board);
exit (1);