[Tinyos-2-commits] CVS: tinyos-2.x/apps/RadioSenseToLeds RadioSenseToLedsC.nc, 1.4, 1.5

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


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

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


Index: RadioSenseToLedsC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/RadioSenseToLeds/RadioSenseToLedsC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RadioSenseToLedsC.nc	12 Dec 2006 18:22:49 -0000	1.4
--- RadioSenseToLedsC.nc	13 Sep 2007 23:10:20 -0000	1.5
***************
*** 83,88 ****
        radio_sense_msg_t* rsm;
  
!       rsm = (radio_sense_msg_t*)call Packet.getPayload(&packet, NULL);
!       if (call Packet.maxPayloadLength() < sizeof(radio_sense_msg_t)) {
  	return;
        }
--- 83,88 ----
        radio_sense_msg_t* rsm;
  
!       rsm = (radio_sense_msg_t*)call Packet.getPayload(&packet, sizeof(radio_sense_msg_t));
!       if (rsm == NULL) {
  	return;
        }



More information about the Tinyos-2-commits mailing list