Author: gnychis
Date: 2008-02-14 15:07:24 -0700 (Thu, 14 Feb 2008)
New Revision: 7690
Modified:
gnuradio/branches/developers/gnychis/inband/usrp/host/apps-inband/test_usrp_inband_2rx.cc
Log:
properly starting to receive samples and deallocate
Modified:
gnuradio/branches/developers/gnychis/inband/usrp/host/apps-inband/test_usrp_inband_2rx.cc
===================================================================
---
gnuradio/branches/developers/gnychis/inband/usrp/host/apps-inband/test_usrp_inband_2rx.cc
2008-02-14 22:02:16 UTC (rev 7689)
+++
gnuradio/branches/developers/gnychis/inband/usrp/host/apps-inband/test_usrp_inband_2rx.cc
2008-02-14 22:07:24 UTC (rev 7690)
@@ -306,6 +306,10 @@
d_rx->send(s_cmd_start_recv_raw_samples,
pmt_list2(PMT_F,
d_rx_chan0));
+
+ d_rx->send(s_cmd_start_recv_raw_samples,
+ pmt_list2(PMT_F,
+ d_rx_chan1));
if(verbose)
std::cout << "[TEST_USRP_INBAND_RX] Receiving...\n";
@@ -331,6 +335,7 @@
// Check if the number samples we have received meets the test
if(d_samples_recvd >= d_samples_to_recv) {
d_rx->send(s_cmd_stop_recv_raw_samples, pmt_list2(PMT_NIL, d_rx_chan0));
+ d_rx->send(s_cmd_stop_recv_raw_samples, pmt_list2(PMT_NIL, d_rx_chan1));
enter_closing_channel();
return;
}
@@ -343,6 +348,7 @@
d_state = CLOSING_CHANNEL;
d_rx->send(s_cmd_deallocate_channel, pmt_list2(PMT_NIL, d_rx_chan0));
+ d_rx->send(s_cmd_deallocate_channel, pmt_list2(PMT_NIL, d_rx_chan1));
if(verbose)
std::cout << "[TEST_USRP_INBAND_RX] Deallocating RX channel\n";
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio