Advertisement
Guest User

Untitled

a guest
Apr 30th, 2011
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. diff --git a/gr-uhd/lib/gr_uhd_usrp_source.cc b/gr-uhd/lib/gr_uhd_usrp_source.cc
  2. index fed8e66..45994bb 100644
  3. --- a/gr-uhd/lib/gr_uhd_usrp_source.cc
  4. +++ b/gr-uhd/lib/gr_uhd_usrp_source.cc
  5. @@ -181,6 +181,11 @@ public:
  6. //ignore overflows and try work again
  7. return work(noutput_items, input_items, output_items);
  8.  
  9. + case uhd::rx_metadata_t::ERROR_CODE_TIMEOUT:
  10. + //Assume that the user called stop() on the flow graph.
  11. + //However, a timeout can occur under error conditions.
  12. + return WORK_DONE;
  13. +
  14. default:
  15. std::cout << boost::format(
  16. "UHD source block got error code 0x%x"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement