Move mblock library include files into separate library. Updates to usrp in-band...
[debian/gnuradio] / usrp / host / apps-inband / read_packets.cc
index 92d8baf0dcaeeccd02e36bceb297bc36dcf49115..24a1e88b5cc0148522e2724cf354c99aff1a2349 100644 (file)
@@ -1,6 +1,6 @@
 /* -*- c++ -*- */
 /*
- * Copyright 2007 Free Software Foundation, Inc.
+ * Copyright 2007,2008 Free Software Foundation, Inc.
  * 
  * This file is part of GNU Radio
  * 
@@ -25,7 +25,7 @@
 
 #include <iostream>
 #include <usrp_inband_usb_packet.h>
-#include <mb_class_registry.h>
+#include <mblock/class_registry.h>
 #include <vector>
 #include <usrp_usb_interface.h>
 #include <fstream>
@@ -73,6 +73,12 @@ int main(int argc, char *argv[]) {
 //    if(pkt->carrier_sense())
 //      printf("\tcarrier sense\n");
 
+    if(pkt->underrun())
+      printf("\tunderrun\n");
+    
+    if(pkt->overrun())
+      printf("\toverrun\n");
+
     printf("\tchannel: \t0x%x\n", pkt->chan());
     printf("\ttimestamp: \t0x%x\n", pkt->timestamp());
     //printf("\ttimestamp: \t%u\n", pkt->timestamp());