aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVirendra Kakade <virendra.kakade@ni.com>2019-11-22 15:49:40 -0600
committerMartin Braun <martin.braun@ettus.com>2019-11-26 12:21:35 -0800
commita98da1dfd4b3c044efdf54ca2bd636d2ad0a6f46 (patch)
treef55a07f4c4542badf5629102621222d30598d68a
parent1c3c7bddff19e0e575b9f411fa73bb2429e4fc66 (diff)
downloaduhd-a98da1dfd4b3c044efdf54ca2bd636d2ad0a6f46.tar.gz
uhd-a98da1dfd4b3c044efdf54ca2bd636d2ad0a6f46.tar.bz2
uhd-a98da1dfd4b3c044efdf54ca2bd636d2ad0a6f46.zip
rfnoc: fix incorrect long fifo wait timeouts
This fixes behavior where we would get long 100 sec timeouts on fifo waits instead of 100 ms timeouts. Signed-off-by: Virendra Kakade <virendra.kakade@ni.com>
-rw-r--r--host/lib/include/uhdlib/transport/nirio_link.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/lib/include/uhdlib/transport/nirio_link.hpp b/host/lib/include/uhdlib/transport/nirio_link.hpp
index 2335e311c..296fe37b9 100644
--- a/host/lib/include/uhdlib/transport/nirio_link.hpp
+++ b/host/lib/include/uhdlib/transport/nirio_link.hpp
@@ -155,7 +155,7 @@ private:
fifo_data_t** data_ptr = static_cast<nirio_frame_buff&>(buff).get_fifo_ptr_ref();
nirio_status_chain(_recv_fifo->acquire(*data_ptr,
_link_params.recv_frame_size / sizeof(fifo_data_t),
- static_cast<uint32_t>(timeout_ms * 1000),
+ static_cast<uint32_t>(timeout_ms),
elems_acquired,
elems_remaining),
status);
@@ -185,7 +185,7 @@ private:
fifo_data_t** data_ptr = static_cast<nirio_frame_buff&>(buff).get_fifo_ptr_ref();
nirio_status_chain(_send_fifo->acquire(*data_ptr,
_link_params.send_frame_size / sizeof(fifo_data_t),
- static_cast<uint32_t>(timeout_ms * 1000),
+ static_cast<uint32_t>(timeout_ms),
elems_acquired,
elems_remaining),
status);