aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorCiro Nishiguchi <ciro.nishiguchi@ni.com>2020-12-10 15:36:38 -0600
committermichael-west <michael.west@ettus.com>2020-12-21 09:32:28 -0800
commit8467add1ed43f23ca8cb680ec6c82ca15250a216 (patch)
tree1fb371b0aa0be456106ad5f4bea151d870bca875 /host
parentc6578eda2ba482b87583ebd989cdf5cbd5c3f672 (diff)
downloaduhd-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.cpp6
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