[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc1000 CC1000SendReceiveP.nc, 1.14, 1.15
Phil Levis
scipio at users.sourceforge.net
Thu Jun 25 11:41:39 PDT 2009
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc1000
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv14986
Modified Files:
CC1000SendReceiveP.nc
Log Message:
Fix clear() bug: should only clear header, footer, and metadata, not payload.
Index: CC1000SendReceiveP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc1000/CC1000SendReceiveP.nc,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** CC1000SendReceiveP.nc 1 Sep 2008 17:47:33 -0000 1.14
--- CC1000SendReceiveP.nc 25 Jun 2009 18:41:37 -0000 1.15
***************
*** 665,669 ****
command void Packet.clear(message_t *msg) {
! memset(msg, 0, sizeof(message_t));
}
--- 665,671 ----
command void Packet.clear(message_t *msg) {
! memset(getHeader(msg), 0x0, sizeof(cc1000_header_t));
! memset(getFooter(msg), 0x0, sizeof(cc1000_footer_t));
! memset(getMetadata(msg), 0x0, sizeof(cc1000_metadata_t));
}
More information about the Tinyos-2-commits
mailing list