diff options
author | Martin Braun <martin.braun@ettus.com> | 2014-12-15 10:12:06 +0100 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2014-12-15 10:12:06 +0100 |
commit | f6dcf4a96449d2406ee0cb07aa6668377ceb3889 (patch) | |
tree | 887233bbca7132e8dca6c3ef93601aa02d7556b1 /host/lib | |
parent | 125820ea682728141bce25d2d7f6e8609c36ec41 (diff) | |
download | uhd-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.cpp | 7 |
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; |