[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/cc2420
CC2420ActiveMessageP.nc, 1.11, 1.12
Phil Levis
scipio at users.sourceforge.net
Tue Feb 19 13:32:39 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11760
Modified Files:
CC2420ActiveMessageP.nc
Log Message:
Implement clear() properly.
Index: CC2420ActiveMessageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/cc2420/CC2420ActiveMessageP.nc,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** CC2420ActiveMessageP.nc 4 Feb 2008 23:10:13 -0000 1.11
--- CC2420ActiveMessageP.nc 19 Feb 2008 21:32:37 -0000 1.12
***************
*** 142,145 ****
--- 142,147 ----
/***************** Packet Commands ****************/
command void Packet.clear(message_t* msg) {
+ memset(call CC2420PacketBody.getHeader(msg), sizeof(cc2420_header_t), 0);
+ memset(call CC2420PacketBody.getMetadata(msg), sizeof(cc2420_metadata_t), 0);
}
More information about the Tinyos-2-commits
mailing list