From 8467add1ed43f23ca8cb680ec6c82ca15250a216 Mon Sep 17 00:00:00 2001 From: Ciro Nishiguchi Date: Thu, 10 Dec 2020 15:36:38 -0600 Subject: rfnoc: Fix time conversion in ctrlport_endpoint sleep method --- host/lib/rfnoc/ctrlport_endpoint.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'host/lib') 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(timeout.to_ticks(_client_clk.get_freq()))}, + {data, + mask, + static_cast(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(duration.to_ticks(_client_clk.get_freq()))}, + {static_cast(duration.to_ticks(_timebase_clk.get_freq()))}, uhd::time_spec_t::ASAP); // Optionally wait for an ACK -- cgit v1.2.3