[Tinyos-2-commits]
CVS: tinyos-2.x/apps/BaseStation BaseStationP.nc, 1.5, 1.6
Omprakash Gnawali
gnawali at users.sourceforge.net
Wed Dec 12 17:16:44 PST 2007
Update of /cvsroot/tinyos/tinyos-2.x/apps/BaseStation
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv12857
Modified Files:
BaseStationP.nc
Log Message:
copy src from radio to uart pkt
Index: BaseStationP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/BaseStation/BaseStationP.nc,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** BaseStationP.nc 8 Feb 2007 01:00:26 -0000 1.5
--- BaseStationP.nc 13 Dec 2007 01:16:42 -0000 1.6
***************
*** 178,182 ****
uint8_t len;
am_id_t id;
! am_addr_t addr;
message_t* msg;
atomic
--- 178,182 ----
uint8_t len;
am_id_t id;
! am_addr_t addr, src;
message_t* msg;
atomic
***************
*** 191,194 ****
--- 191,196 ----
id = call RadioAMPacket.type(msg);
addr = call RadioAMPacket.destination(msg);
+ src = call RadioAMPacket.source(msg);
+ call UartAMPacket.setSource(msg, src);
if (call UartSend.send[id](addr, uartQueue[uartOut], len) == SUCCESS)
More information about the Tinyos-2-commits
mailing list