aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/rx_timed_samples.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 630b4a7a9..a9d19dbe8 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -133,6 +133,16 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
num_acc_samps += num_rx_samps;
} done_loop:
+ std::cout << "disconnect now!!!!!!!!\n";
+ sleep(3);
+
+ try{
+ usrp.reset();
+ }
+ catch(...){
+ std::cout << "error caught \n";
+ }
+
//finished
std::cout << std::endl << "Done!" << std::endl << std::endl;