summaryrefslogtreecommitdiff
path: root/gr-uhd/lib/uhd_simple_source.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-uhd/lib/uhd_simple_source.cc')
-rw-r--r--gr-uhd/lib/uhd_simple_source.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/gr-uhd/lib/uhd_simple_source.cc b/gr-uhd/lib/uhd_simple_source.cc
index 49e4f168a..c734e9244 100644
--- a/gr-uhd/lib/uhd_simple_source.cc
+++ b/gr-uhd/lib/uhd_simple_source.cc
@@ -29,7 +29,7 @@
* UHD Source
**********************************************************************/
uhd_simple_source::uhd_simple_source(gr_io_signature_sptr sig)
-:gr_sync_block("uhd source", gr_make_io_signature(0, 0, 0), sig){
+:gr_sync_block("uhd simple source", gr_make_io_signature(0, 0, 0), sig){
/* NOP */
}
@@ -96,6 +96,10 @@ public:
return _dev->set_clock_config(clock_config);
}
+ uhd::time_spec_t get_time_now(void){
+ return _dev->get_time_now();
+ }
+
void set_time_now(const uhd::time_spec_t &time_spec){
return _dev->set_time_now(time_spec);
}
@@ -123,8 +127,8 @@ public:
uhd::rx_metadata_t metadata; //not passed out of this block
return _dev->get_device()->recv(
- boost::asio::buffer(output_items[0], noutput_items*_type.size),
- metadata, _type, uhd::device::RECV_MODE_FULL_BUFF
+ output_items, noutput_items, metadata,
+ _type, uhd::device::RECV_MODE_FULL_BUFF
);
}