diff options
author | Ciro Nishiguchi <ciro.nishiguchi@ni.com> | 2020-12-10 15:36:38 -0600 |
---|---|---|
committer | michael-west <michael.west@ettus.com> | 2020-12-21 09:32:28 -0800 |
commit | 8467add1ed43f23ca8cb680ec6c82ca15250a216 (patch) | |
tree | 1fb371b0aa0be456106ad5f4bea151d870bca875 /host | |
parent | c6578eda2ba482b87583ebd989cdf5cbd5c3f672 (diff) | |
download | uhd-8467add1ed43f23ca8cb680ec6c82ca15250a216.tar.gz uhd-8467add1ed43f23ca8cb680ec6c82ca15250a216.tar.bz2 uhd-8467add1ed43f23ca8cb680ec6c82ca15250a216.zip |
rfnoc: Fix time conversion in ctrlport_endpoint sleep method
Diffstat (limited to 'host')
-rw-r--r-- | host/lib/rfnoc/ctrlport_endpoint.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/lib/rfnoc/ctrlport_endpoint.cpp b/host/lib/rfnoc/ctrlport_endpoint.cpp index 68a2dddf4..607cc6f72 100644 --- a/host/lib/rfnoc/ctrlport_endpoint.cpp +++ b/host/lib/rfnoc/ctrlport_endpoint.cpp @@ -158,7 +158,9 @@ public: // Send request auto request = send_request_packet(OP_POLL, addr, - {data, mask, static_cast<uint32_t>(timeout.to_ticks(_client_clk.get_freq()))}, + {data, + mask, + static_cast<uint32_t>(timeout.to_ticks(_timebase_clk.get_freq()))}, timestamp); // Optionally wait for an ACK @@ -172,7 +174,7 @@ public: // Send request auto request = send_request_packet(OP_SLEEP, 0, - {static_cast<uint32_t>(duration.to_ticks(_client_clk.get_freq()))}, + {static_cast<uint32_t>(duration.to_ticks(_timebase_clk.get_freq()))}, uhd::time_spec_t::ASAP); // Optionally wait for an ACK |