diff options
author | Josh Blum <josh@joshknows.com> | 2012-10-08 00:34:13 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2012-10-13 11:50:37 -0700 |
commit | 5b97216d8d62580b4c9224fb2ad630ade61c0a4f (patch) | |
tree | 5c30ac7f8c45e6d5d1763856e8e7fbaad9e0d8de /gr-uhd | |
parent | a3dfc8b6193b316c95125aafa5c9de1fcf1b6fe3 (diff) |
uhd: fix pmt tuple ref namespace issue
The pmt_tuple_ref should be prefixed with pmt:: just like all of the other calls.
I am uncertain as to why this is compiling (we are not using namespace pmt),
unless there is a hidden using namespace somewhere in a global header.
But it will be good to get the code right as a general purpose example.
Diffstat (limited to 'gr-uhd')
-rw-r--r-- | gr-uhd/examples/c++/tag_sink_demo.h | 4 | ||||
-rw-r--r-- | gr-uhd/lib/gr_uhd_usrp_sink.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gr-uhd/examples/c++/tag_sink_demo.h b/gr-uhd/examples/c++/tag_sink_demo.h index 207cc47e61..5417bd3242 100644 --- a/gr-uhd/examples/c++/tag_sink_demo.h +++ b/gr-uhd/examples/c++/tag_sink_demo.h @@ -55,8 +55,8 @@ public: const pmt::pmt_t &value = rx_time_tag.value; std::cout << boost::format("Full seconds %u, Frac seconds %f, abs sample offset %u") - % pmt::pmt_to_uint64(pmt_tuple_ref(value, 0)) - % pmt::pmt_to_double(pmt_tuple_ref(value, 1)) + % pmt::pmt_to_uint64(pmt::pmt_tuple_ref(value, 0)) + % pmt::pmt_to_double(pmt::pmt_tuple_ref(value, 1)) % offset << std::endl; } diff --git a/gr-uhd/lib/gr_uhd_usrp_sink.cc b/gr-uhd/lib/gr_uhd_usrp_sink.cc index 6c1688ea07..6216c94a83 100644 --- a/gr-uhd/lib/gr_uhd_usrp_sink.cc +++ b/gr-uhd/lib/gr_uhd_usrp_sink.cc @@ -389,8 +389,8 @@ public: else if (pmt::pmt_equal(key, TIME_KEY)){ _metadata.has_time_spec = true; _metadata.time_spec = uhd::time_spec_t( - pmt::pmt_to_uint64(pmt_tuple_ref(value, 0)), - pmt::pmt_to_double(pmt_tuple_ref(value, 1)) + pmt::pmt_to_uint64(pmt::pmt_tuple_ref(value, 0)), + pmt::pmt_to_double(pmt::pmt_tuple_ref(value, 1)) ); } } |