aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/transport/super_recv_packet_handler.hpp
diff options
context:
space:
mode:
authorMartin Braun <martin.braun@ettus.com>2015-09-03 13:04:00 -0700
committerMartin Braun <martin.braun@ettus.com>2015-09-08 09:24:15 -0700
commit43fdc0e84ba577adc799a159c28016bd09a8992d (patch)
tree9362af3243b6eb77e3dddd8eb5fbe72397adf108 /host/lib/transport/super_recv_packet_handler.hpp
parent4ab097722ce4d2df56fc0bc1e278112f87038dc3 (diff)
downloaduhd-43fdc0e84ba577adc799a159c28016bd09a8992d.tar.gz
uhd-43fdc0e84ba577adc799a159c28016bd09a8992d.tar.bz2
uhd-43fdc0e84ba577adc799a159c28016bd09a8992d.zip
transport: Fail for multi-chan-rx + stream_now
Diffstat (limited to 'host/lib/transport/super_recv_packet_handler.hpp')
-rw-r--r--host/lib/transport/super_recv_packet_handler.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/host/lib/transport/super_recv_packet_handler.hpp b/host/lib/transport/super_recv_packet_handler.hpp
index 0f1f7ff3a..66852f705 100644
--- a/host/lib/transport/super_recv_packet_handler.hpp
+++ b/host/lib/transport/super_recv_packet_handler.hpp
@@ -203,6 +203,10 @@ public:
//! Overload call to issue stream commands
void issue_stream_cmd(const stream_cmd_t &stream_cmd)
{
+ if (stream_cmd.stream_now and _props.size() > 1) {
+ throw uhd::runtime_error("Attempting to do multi-channel receive with stream_now == true will result in misaligned channels. Aborting.");
+ }
+
for (size_t i = 0; i < _props.size(); i++)
{
if (_props[i].issue_stream_cmd) _props[i].issue_stream_cmd(stream_cmd);