summaryrefslogtreecommitdiff
path: root/gr-uhd/lib
diff options
context:
space:
mode:
authorJosh Blum2011-09-26 08:30:08 -0700
committerJosh Blum2011-09-26 08:30:08 -0700
commitab2d7789629cdbfc7091100bfbe8ef02a05aec7e (patch)
tree5be31cd1fc18433608c5e042a8f1909021cd2974 /gr-uhd/lib
parent3c70ea18b9d8ee131523d36533c92fb760186193 (diff)
downloadgnuradio-ab2d7789629cdbfc7091100bfbe8ef02a05aec7e.tar.gz
gnuradio-ab2d7789629cdbfc7091100bfbe8ef02a05aec7e.tar.bz2
gnuradio-ab2d7789629cdbfc7091100bfbe8ef02a05aec7e.zip
uhd: tweaks for some minor details
Diffstat (limited to 'gr-uhd/lib')
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_sink.cc4
-rw-r--r--gr-uhd/lib/gr_uhd_usrp_source.cc1
2 files changed, 3 insertions, 2 deletions
diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc
index 852a730db..e22b5840e 100644
--- a/gr-uhd/lib/gr_uhd_usrp_sink.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc
@@ -180,10 +180,12 @@ public:
* Work
**********************************************************************/
int work(
- int ninput_items,
+ int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items
){
+ const int ninput_items = noutput_items; //cuz its a sync block
+
//send a mid-burst packet with time spec
_metadata.start_of_burst = false;
_metadata.end_of_burst = false;
diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc
index 4c13db14e..62da83d96 100644
--- a/gr-uhd/lib/gr_uhd_usrp_source.cc
+++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
@@ -229,7 +229,6 @@ public:
case uhd::rx_metadata_t::ERROR_CODE_OVERFLOW:
_tag_now = true;
//ignore overflows and try work again
- //TODO insert tag for overflow
return work(noutput_items, input_items, output_items);
default: