diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-06-27 12:00:18 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-06-27 12:00:18 -0700 |
commit | 5a0be9b1de7be7ba6c266dd742456a96e25373fc (patch) | |
tree | 6bcd3b02f399cc2677a6c747411d7e2ced1923f5 /host/lib/usrp/common | |
parent | e48659cec5207b598d877d8beca7e0b3807b617e (diff) | |
parent | 24db48766dff45b8fe8ed3031e09617ca92b84b6 (diff) | |
download | uhd-5a0be9b1de7be7ba6c266dd742456a96e25373fc.tar.gz uhd-5a0be9b1de7be7ba6c266dd742456a96e25373fc.tar.bz2 uhd-5a0be9b1de7be7ba6c266dd742456a96e25373fc.zip |
Merge branch 'maint'
Diffstat (limited to 'host/lib/usrp/common')
-rw-r--r-- | host/lib/usrp/common/async_packet_handler.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/host/lib/usrp/common/async_packet_handler.hpp b/host/lib/usrp/common/async_packet_handler.hpp index fd4fed81e..01594be0b 100644 --- a/host/lib/usrp/common/async_packet_handler.hpp +++ b/host/lib/usrp/common/async_packet_handler.hpp @@ -40,7 +40,11 @@ namespace uhd{ namespace usrp{ //load into metadata metadata.channel = channel; metadata.has_time_spec = if_packet_info.has_tsf; - metadata.time_spec = time_spec_t::from_ticks(if_packet_info.tsf, tick_rate); + if (tick_rate == 0.0) { + metadata.time_spec = 0.0; + } else { + metadata.time_spec = time_spec_t::from_ticks(if_packet_info.tsf, tick_rate); + } metadata.event_code = async_metadata_t::event_code_t(to_host(payload[0]) & 0xff); //load user payload |