[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/mts300/PhotoTemp
OscilloscopeC.nc, 1.1, 1.2
Phil Levis
scipio at users.sourceforge.net
Thu Sep 13 16:10:29 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/mts300/PhotoTemp
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27056/apps/tests/mts300/PhotoTemp
Modified Files:
OscilloscopeC.nc
Log Message:
The big interface switchover for Packet, Send, Receive, and AMSend.
Index: OscilloscopeC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/mts300/PhotoTemp/OscilloscopeC.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** OscilloscopeC.nc 23 May 2007 23:01:38 -0000 1.1
--- OscilloscopeC.nc 13 Sep 2007 23:10:22 -0000 1.2
***************
*** 103,107 ****
if (!sendbusy && sizeof local <= call AMSend.maxPayloadLength())
{
! memcpy(call AMSend.getPayload(&sendbuf), &local, sizeof local);
if (call AMSend.send(AM_BROADCAST_ADDR, &sendbuf, sizeof local) == SUCCESS)
sendbusy = TRUE;
--- 103,107 ----
if (!sendbusy && sizeof local <= call AMSend.maxPayloadLength())
{
! memcpy(call AMSend.getPayload(&sendbuf, sizeof(local)), &local, sizeof local);
if (call AMSend.send(AM_BROADCAST_ADDR, &sendbuf, sizeof local) == SUCCESS)
sendbusy = TRUE;
More information about the Tinyos-2-commits
mailing list