From 8876bc8aea9e5a32c7e47625baad705c9503bc79 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Thu, 11 Aug 2016 10:23:26 -0700 Subject: rfnoc: Radios now ignore stream commands when inactive --- host/lib/rfnoc/radio_ctrl_impl.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'host') diff --git a/host/lib/rfnoc/radio_ctrl_impl.cpp b/host/lib/rfnoc/radio_ctrl_impl.cpp index 6ed09ecdd..1cc7a2472 100644 --- a/host/lib/rfnoc/radio_ctrl_impl.cpp +++ b/host/lib/rfnoc/radio_ctrl_impl.cpp @@ -243,6 +243,10 @@ void radio_ctrl_impl::issue_stream_cmd(const uhd::stream_cmd_t &stream_cmd, cons { boost::mutex::scoped_lock lock(_mutex); UHD_RFNOC_BLOCK_TRACE() << "radio_ctrl_impl::issue_stream_cmd() " << chan << " " << char(stream_cmd.stream_mode) << std::endl; + if (not _is_streamer_active(uhd::RX_DIRECTION, chan)) { + UHD_RFNOC_BLOCK_TRACE() << "radio_ctrl_impl::issue_stream_cmd() called on inactive channel. Skipping." << std::endl; + return; + } UHD_ASSERT_THROW(stream_cmd.num_samps <= 0x0fffffff); _continuous_streaming[chan] = (stream_cmd.stream_mode == stream_cmd_t::STREAM_MODE_START_CONTINUOUS); -- cgit v1.2.3