aboutsummaryrefslogtreecommitdiffstats
path: root/host
diff options
context:
space:
mode:
authorWade Fife <wade.fife@ettus.com>2018-11-06 06:48:28 -0600
committerBrent Stapleton <bstapleton@g.hmc.edu>2018-11-27 16:58:50 -0800
commit85665ac5a73147cf2784af96c7c0bce0ac2eb114 (patch)
tree169f183c82bc6396a08340b50ec9489e1874ff50 /host
parenta8ae5d433b4493951b7be6a13933fe059c0f9567 (diff)
downloaduhd-85665ac5a73147cf2784af96c7c0bce0ac2eb114.tar.gz
uhd-85665ac5a73147cf2784af96c7c0bce0ac2eb114.tar.bz2
uhd-85665ac5a73147cf2784af96c7c0bce0ac2eb114.zip
RFNoC: Fix replay example port args
Diffstat (limited to 'host')
-rw-r--r--host/examples/replay_samples_from_file.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/examples/replay_samples_from_file.cpp b/host/examples/replay_samples_from_file.cpp
index 70c0272c5..f9ef3cd45 100644
--- a/host/examples/replay_samples_from_file.cpp
+++ b/host/examples/replay_samples_from_file.cpp
@@ -344,7 +344,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[])
stream_cmd.stream_mode = uhd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS;
cout << endl << "Stopping replay..." << endl;
- replay_ctrl->issue_stream_cmd(stream_cmd);
+ replay_ctrl->issue_stream_cmd(stream_cmd, replay_chan);
///////////////////////////////////////////////////////////////////////////
@@ -353,10 +353,10 @@ int UHD_SAFE_MAIN(int argc, char *argv[])
uint16_t prev_packet_count, packet_count;
cout << "Waiting for replay data to flush... ";
- prev_packet_count = replay_ctrl->sr_read64(uhd::rfnoc::SR_READBACK_REG_GLOBAL_PARAMS, 0) >> 32;
+ prev_packet_count = replay_ctrl->sr_read64(uhd::rfnoc::SR_READBACK_REG_GLOBAL_PARAMS, replay_chan) >> 32;
while(true) {
std::this_thread::sleep_for(std::chrono::milliseconds(100));
- packet_count = replay_ctrl->sr_read64(uhd::rfnoc::SR_READBACK_REG_GLOBAL_PARAMS, 0) >> 32;
+ packet_count = replay_ctrl->sr_read64(uhd::rfnoc::SR_READBACK_REG_GLOBAL_PARAMS, replay_chan) >> 32;
if (packet_count == prev_packet_count) break;
prev_packet_count = packet_count;
}