commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r7975 - usrp2/trunk/host/lib


From: eb
Subject: [Commit-gnuradio] r7975 - usrp2/trunk/host/lib
Date: Sat, 8 Mar 2008 14:04:12 -0700 (MST)

Author: eb
Date: 2008-03-08 14:04:11 -0700 (Sat, 08 Mar 2008)
New Revision: 7975

Modified:
   usrp2/trunk/host/lib/usrp2_basic.cc
Log:
testing

Modified: usrp2/trunk/host/lib/usrp2_basic.cc
===================================================================
--- usrp2/trunk/host/lib/usrp2_basic.cc 2008-03-08 20:37:22 UTC (rev 7974)
+++ usrp2/trunk/host/lib/usrp2_basic.cc 2008-03-08 21:04:11 UTC (rev 7975)
@@ -503,9 +503,15 @@
   unsigned char *p = pktbuf + sizeof(u2_eth_packet_t);
   int opcode = p[0];
 
-  printf("opcode = %d\n", opcode);
+  printf("opcode (1) = %d\n", opcode);
+
   if (opcode == OP_READ_TIME_REPLY){
-    *time = ((op_read_time_reply_t *) p)->time;
+    op_read_time_reply_t *r = (op_read_time_reply_t *) p;
+    printf("opcode (2) = %d\n", r->opcode);
+    printf("  len = %d\n", r->len);
+    printf("  rid_mbz = %d\n", r->rid_mbz);
+    printf("  time = %d\n", r->time);
+    *time = r->time;
     return true;
   }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]