summaryrefslogtreecommitdiff
path: root/usrp/host
diff options
context:
space:
mode:
authoreb2007-05-30 19:19:35 +0000
committereb2007-05-30 19:19:35 +0000
commite60ca726639d6588b243241d38d28a094404dbb7 (patch)
treeab1db165ba7b2698f7d19d349ae15b04942a77a5 /usrp/host
parentce991c54a0969ffdceb5165bc349b1cc3befa3c2 (diff)
downloadgnuradio-e60ca726639d6588b243241d38d28a094404dbb7.tar.gz
gnuradio-e60ca726639d6588b243241d38d28a094404dbb7.tar.bz2
gnuradio-e60ca726639d6588b243241d38d28a094404dbb7.zip
Dave Gotwisner's fix for usrp_basic_rx::stop
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5576 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'usrp/host')
-rw-r--r--usrp/host/lib/legacy/usrp_basic.cc22
1 files changed, 13 insertions, 9 deletions
diff --git a/usrp/host/lib/legacy/usrp_basic.cc b/usrp/host/lib/legacy/usrp_basic.cc
index 0ac9e052a..dd1945878 100644
--- a/usrp/host/lib/legacy/usrp_basic.cc
+++ b/usrp/host/lib/legacy/usrp_basic.cc
@@ -541,17 +541,19 @@ usrp_basic_rx::stop ()
{
bool ok = usrp_basic::stop();
- if (!d_ephandle->stop()){
- fprintf (stderr, "usrp_basic_rx: failed to stop end point streaming");
+ if (!set_rx_enable(false)){
+ fprintf (stderr, "usrp_basic_rx: set_rx_enable(false) failed\n");
usb_strerror ();
ok = false;
}
- if (!set_rx_enable(false)){
- fprintf (stderr, "usrp_basic_rx: set_rx_enable(false) failed\n");
+
+ if (!d_ephandle->stop()){
+ fprintf (stderr, "usrp_basic_rx: failed to stop end point streaming");
usb_strerror ();
ok = false;
}
- return false;
+
+ return ok;
}
usrp_basic_rx *
@@ -970,16 +972,18 @@ usrp_basic_tx::stop ()
{
bool ok = usrp_basic::stop ();
- if (!set_tx_enable (false)){
- fprintf (stderr, "usrp_basic_tx: set_tx_enable(false) failed\n");
+ if (!d_ephandle->stop ()){
+ fprintf (stderr, "usrp_basic_tx: failed to stop end point streaming");
usb_strerror ();
ok = false;
}
- if (!d_ephandle->stop ()){
- fprintf (stderr, "usrp_basic_tx: failed to stop end point streaming");
+
+ if (!set_tx_enable (false)){
+ fprintf (stderr, "usrp_basic_tx: set_tx_enable(false) failed\n");
usb_strerror ();
ok = false;
}
+
return ok;
}