[Tinyos-2-commits]
CVS: tinyos-2.x/apps/BaseStation BaseStationP.nc, 1.6, 1.7
Phil Levis
scipio at users.sourceforge.net
Tue Feb 19 11:54:37 PST 2008
Update of /cvsroot/tinyos/tinyos-2.x/apps/BaseStation
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv1893
Modified Files:
BaseStationP.nc
Log Message:
Clear out the packets.
Index: BaseStationP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/BaseStation/BaseStationP.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** BaseStationP.nc 13 Dec 2007 01:16:42 -0000 1.6
--- BaseStationP.nc 19 Feb 2008 19:54:34 -0000 1.7
***************
*** 192,195 ****
--- 192,196 ----
addr = call RadioAMPacket.destination(msg);
src = call RadioAMPacket.source(msg);
+ call RadioAMPacket.clear(msg);
call UartAMPacket.setSource(msg, src);
***************
*** 254,258 ****
uint8_t len;
am_id_t id;
! am_addr_t addr;
message_t* msg;
--- 255,259 ----
uint8_t len;
am_id_t id;
! am_addr_t addr,source;
message_t* msg;
***************
*** 267,271 ****
--- 268,277 ----
len = call UartPacket.payloadLength(msg);
addr = call UartAMPacket.destination(msg);
+ source = call UartAMPacket.source(msg);
id = call UartAMPacket.type(msg);
+
+ call RadioAMPacket.clear(msg);
+ call RadioAMPacket.setSource(msg, source);
+
if (call RadioSend.send[id](addr, msg, len) == SUCCESS)
call Leds.led0Toggle();
More information about the Tinyos-2-commits
mailing list