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 {
_______________________________________________
Commit-gnuradio mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnuradio