diff options
author | Michael West <michael.west@ettus.com> | 2017-03-29 13:24:32 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-06-26 13:23:07 -0700 |
commit | 2f7f873b7f0299ec1f8ae7c752246cb2f1608c0a (patch) | |
tree | adaaa9f96542dd201057ab3ef1e9f4b4d5957872 /host/lib/usrp/common | |
parent | 84f3f9e0db94adfca5ee2d7e31bace9af34d6303 (diff) | |
download | uhd-2f7f873b7f0299ec1f8ae7c752246cb2f1608c0a.tar.gz uhd-2f7f873b7f0299ec1f8ae7c752246cb2f1608c0a.tar.bz2 uhd-2f7f873b7f0299ec1f8ae7c752246cb2f1608c0a.zip |
X300: Dual channel TX performance improvements
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 20409c77a..4b162677b 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 |