aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2014-12-15 10:12:06 +0100
committerMartin Braun <martin.braun@ettus.com>2014-12-15 10:12:06 +0100
commitf6dcf4a96449d2406ee0cb07aa6668377ceb3889 (patch)
tree887233bbca7132e8dca6c3ef93601aa02d7556b1 /host/lib
parent125820ea682728141bce25d2d7f6e8609c36ec41 (diff)
downloaduhd-f6dcf4a96449d2406ee0cb07aa6668377ceb3889.tar.gz
uhd-f6dcf4a96449d2406ee0cb07aa6668377ceb3889.tar.bz2
uhd-f6dcf4a96449d2406ee0cb07aa6668377ceb3889.zip
nirio: Address linking issues on OSX
Diffstat (limited to 'host/lib')
-rw-r--r--host/lib/transport/nirio/niriok_proxy_impl_v1.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp b/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp
index 7ef0e3645..f4a8e4ff5 100644
--- a/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp
+++ b/host/lib/transport/nirio/niriok_proxy_impl_v1.cpp
@@ -285,9 +285,10 @@ namespace uhd { namespace niusrprio
niriok_proxy_impl_v1::nirio_syncop_out_params_t out = {};
in.function = niriok_proxy_impl_v1::NIRIO_FUNC::ADD_RESOURCE;
- in.subfunction = (fifo_info.direction == OUTPUT_FIFO) ?
- niriok_proxy_impl_v1::NIRIO_RESOURCE::OUTPUT_FIFO :
- niriok_proxy_impl_v1::NIRIO_RESOURCE::INPUT_FIFO;
+ if (fifo_info.direction == OUTPUT_FIFO)
+ in.subfunction = niriok_proxy_impl_v1::NIRIO_RESOURCE::OUTPUT_FIFO;
+ else
+ in.subfunction = niriok_proxy_impl_v1::NIRIO_RESOURCE::INPUT_FIFO;
in.params.add.fifoWithDataType.channel = fifo_info.channel;
in.params.add.fifoWithDataType.baseAddress = fifo_info.base_addr;