Author: gnychis
Date: 2007-08-31 23:35:50 -0600 (Fri, 31 Aug 2007)
New Revision: 6250

Modified:
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
Log:
Simple overrun/underrun reporting through the properties dictionary of sample
receive responses.


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc 
    2007-09-01 05:22:12 UTC (rev 6249)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_server.cc 
    2007-09-01 05:35:50 UTC (rev 6250)
@@ -1097,6 +1097,16 @@
                pmt_intern("rssi"),
                pmt_from_long(pkt->rssi()));
 
+  if(pkt->overrun())
+    pmt_dict_set(properties,
+                 pmt_intern("overrun"),
+                 PMT_T);
+
+  if(pkt->underrun())
+    pmt_dict_set(properties,
+                 pmt_intern("underrun"),
+                 PMT_T);
+
   d_rx[port]->send(s_response_recv_raw_samples,
                    pmt_list5(invocation_handle,
                              status,



_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio

Reply via email to