aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2017-12-09 20:16:44 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2017-12-09 20:16:44 +0700
commit012323230549af786f04fd94fc85ab7fbfa7a53d (patch)
treee83fa28ba5d9a947d1773e8e91568ef10cc86d59
parent34266e785dc7c203c978dc5c6910dd2db4e6b3b8 (diff)
txtime_setter_impl: fix wrong time_hint reference
-rw-r--r--lib/transmitter/txtime_setter_impl.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/transmitter/txtime_setter_impl.cc b/lib/transmitter/txtime_setter_impl.cc
index f6141f0..03cc82e 100644
--- a/lib/transmitter/txtime_setter_impl.cc
+++ b/lib/transmitter/txtime_setter_impl.cc
@@ -87,15 +87,14 @@ namespace gr {
void txtime_setter_impl::process_fn_time_reference(pmt::pmt_t msg)
{
- pmt::pmt_t not_found = pmt::intern("not_found");
pmt::pmt_t fn_time, time_hint;
fn_time = pmt::dict_ref(msg,
- pmt::intern("fn_time"), not_found);
+ pmt::intern("fn_time"), pmt::PMT_NIL);
time_hint = pmt::dict_ref(msg,
- pmt::intern("fn_time"), not_found);
+ pmt::intern("time_hint"), pmt::PMT_NIL);
- if (fn_time != not_found) {
+ if (fn_time != pmt::PMT_NIL) {
uint32_t fn_ref = static_cast<uint32_t>
(pmt::to_uint64(pmt::car(pmt::car(fn_time))));
uint32_t ts = static_cast<uint32_t>
@@ -106,7 +105,7 @@ namespace gr {
pmt::cdr(pmt::cdr(fn_time)));
set_fn_time_reference(fn_ref, ts, time_secs, time_fracs);
- } else if (time_hint != not_found) {
+ } else if (time_hint != pmt::PMT_NIL) {
set_time_hint(pmt::to_uint64(pmt::car(fn_time)),
pmt::to_double(pmt::cdr(fn_time)));
}