commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r6685 - gnuradio/branches/developers/gnychis/inband/us


From: gnychis
Subject: [Commit-gnuradio] r6685 - gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband
Date: Wed, 24 Oct 2007 09:17:49 -0600 (MDT)

Author: gnychis
Date: 2007-10-24 09:17:47 -0600 (Wed, 24 Oct 2007)
New Revision: 6685

Modified:
   
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.h
Log:
Removing payload check on header increment


Modified: 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.h
===================================================================
--- 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.h
   2007-10-24 05:06:18 UTC (rev 6684)
+++ 
gnuradio/branches/developers/gnychis/inband/usrp/host/lib/inband/usrp_inband_usb_packet.h
   2007-10-24 15:17:47 UTC (rev 6685)
@@ -151,18 +151,8 @@
     d_word0 = host_to_usrp_u32(word0);
   }
 
-  int incr_header_len(int val) {
-    int h_flags = flags();
-    int h_chan = chan();
-    int h_tag = tag();
-    int h_payload_len = payload_len() + val;
-
-    if(h_payload_len > MAX_PAYLOAD)
-      return -1;
-
-    set_header(h_flags, h_chan, h_tag, h_payload_len);
-
-    return h_payload_len;
+  void incr_header_len(int val) {
+    set_header(flags(), chan(), tag(), payload_len() + val);
   }
   
   uint32_t timestamp() const {





reply via email to

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