[Tinyos-2-commits] CVS: tinyos-2.x/apps/AntiTheft/Nodes AntiTheftC.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/Nodes
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27056/apps/AntiTheft/Nodes

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


Index: AntiTheftC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/AntiTheft/Nodes/AntiTheftC.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AntiTheftC.nc	14 Apr 2007 00:35:07 -0000	1.3
--- AntiTheftC.nc	13 Sep 2007 23:10:19 -0000	1.4
***************
*** 104,112 ****
  
  	/* Get the payload part of alertMsg and fill in our data */
! 	alert_t *newAlert = call AlertRoot.getPayload(&alertMsg);
! 	newAlert->stolenId = TOS_NODE_ID;
! 
! 	/* and send it... */
! 	check(call AlertRoot.send(&alertMsg, sizeof *newAlert));
        }
    }
--- 104,113 ----
  
  	/* Get the payload part of alertMsg and fill in our data */
! 	alert_t *newAlert = call AlertRoot.getPayload(&alertMsg, sizeof(alert_t));
! 	if (newAlert != NULL) {
! 	  newAlert->stolenId = TOS_NODE_ID;
! 	  /* and send it... */
! 	  check(call AlertRoot.send(&alertMsg, sizeof *newAlert));
! 	}
        }
    }



More information about the Tinyos-2-commits mailing list