aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/nirio_zero_copy.cpp
diff options
context:
space:
mode:
authorAshish Chaudhari <ashish@ettus.com>2014-04-28 15:22:47 -0700
committerAshish Chaudhari <ashish@ettus.com>2014-04-28 15:22:47 -0700
commit7fad62620d75a56f35fb12d3a74ca5b157e01514 (patch)
tree4ad5ed683d3c12a648a78b90e40eef4918506263 /host/lib/transport/nirio_zero_copy.cpp
parent623f5295d8297794d85894ed174221b6d18e75c0 (diff)
downloaduhd-7fad62620d75a56f35fb12d3a74ca5b157e01514.tar.gz
uhd-7fad62620d75a56f35fb12d3a74ca5b157e01514.tar.bz2
uhd-7fad62620d75a56f35fb12d3a74ca5b157e01514.zip
x300: Fixed DMA busy logic after review feedback.
Diffstat (limited to 'host/lib/transport/nirio_zero_copy.cpp')
-rw-r--r--host/lib/transport/nirio_zero_copy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/host/lib/transport/nirio_zero_copy.cpp b/host/lib/transport/nirio_zero_copy.cpp
index a739c01f1..3bb822720 100644
--- a/host/lib/transport/nirio_zero_copy.cpp
+++ b/host/lib/transport/nirio_zero_copy.cpp
@@ -304,7 +304,7 @@ private:
PCIE_RX_DMA_REG(DMA_CTRL_STATUS_REG, _fifo_instance), reg_data), status);
rx_busy = (reg_data & DMA_STATUS_BUSY);
- if (nirio_status_not_fatal(status) && !tx_busy && !rx_busy) {
+ if (nirio_status_not_fatal(status) && (tx_busy || rx_busy)) {
start_time = boost::posix_time::microsec_clock::local_time();
do {
boost::this_thread::sleep(boost::posix_time::microsec(50)); //Avoid flooding the bus