[Tinyos-2-commits] CVS: tinyos-2.x/apps/AntiTheft/Root AntiTheftRootC.nc, 1.3, 1.4

Phil Levis scipio at users.sourceforge.net
Thu Sep 13 16:10:52 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/AntiTheft/Root
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27056/apps/AntiTheft/Root

Modified Files:
	AntiTheftRootC.nc 
Log Message:
The big interface switchover for Packet, Send, Receive, and AMSend.


Index: AntiTheftRootC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/AntiTheft/Root/AntiTheftRootC.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AntiTheftRootC.nc	14 Apr 2007 00:35:07 -0000	1.3
--- AntiTheftRootC.nc	13 Sep 2007 23:10:19 -0000	1.4
***************
*** 94,102 ****
  	/* Copy payload (newAlert) from collection system to our serial
  	   message buffer (fwdAlert), then send our serial message */
! 	alert_t *fwdAlert = call AlertsForward.getPayload(&fwdMsg);
! 
! 	*fwdAlert = *newAlert;
! 	if (call AlertsForward.send(AM_BROADCAST_ADDR, &fwdMsg, sizeof *fwdAlert) == SUCCESS)
! 	  fwdBusy = TRUE;
        }
      return msg;
--- 94,103 ----
  	/* Copy payload (newAlert) from collection system to our serial
  	   message buffer (fwdAlert), then send our serial message */
! 	alert_t *fwdAlert = call AlertsForward.getPayload(&fwdMsg, sizeof(alert_t));
! 	if (fwdAlert != NULL) {
! 	  *fwdAlert = *newAlert;
! 	  if (call AlertsForward.send(AM_BROADCAST_ADDR, &fwdMsg, sizeof *fwdAlert) == SUCCESS)
! 	    fwdBusy = TRUE;
! 	}
        }
      return msg;



More information about the Tinyos-2-commits mailing list