From 85665ac5a73147cf2784af96c7c0bce0ac2eb114 Mon Sep 17 00:00:00 2001 From: Wade Fife Date: Tue, 6 Nov 2018 06:48:28 -0600 Subject: RFNoC: Fix replay example port args --- host/examples/replay_samples_from_file.cpp | 6 +++--- 1 file 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; } -- cgit v1.2.3