[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/rf230/RF230Test RF230TestM.nc, 1.1, 1.2

Janos Sallai sallai at users.sourceforge.net
Fri Nov 16 18:24:45 PST 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/rf230/RF230Test
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv427

Modified Files:
	RF230TestM.nc 
Log Message:
fixed AMSend interface usage

Index: RF230TestM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/rf230/RF230Test/RF230TestM.nc,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** RF230TestM.nc	6 Nov 2007 19:41:28 -0000	1.1
--- RF230TestM.nc	17 Nov 2007 02:24:43 -0000	1.2
***************
*** 85,89 ****
  		else if( seqNo == 7 )
  		{
! 			*(uint16_t*)(call AMSend.getPayload[111](&testMsg)) = seqNo;
  			call AMSend.send[111](0xFFFF, &testMsg, 2);
  		}
--- 85,91 ----
  		else if( seqNo == 7 )
  		{
! 			*(uint16_t*)(call AMSend.getPayload[111](
!                     &testMsg,
! 			        call AMSend.maxPayloadLength[111]())) = seqNo;
  			call AMSend.send[111](0xFFFF, &testMsg, 2);
  		}
***************
*** 98,102 ****
  		else if( 2 <= seqMod && seqMod <= 14 )
  		{
! 			*(uint16_t*)(call AMSend.getPayload[111](&testMsg)) = seqNo;
  			call AMSend.send[111](0xFFFF, &testMsg, 2);
  		}
--- 100,106 ----
  		else if( 2 <= seqMod && seqMod <= 14 )
  		{
! 			*(uint16_t*)(call AMSend.getPayload[111](
!                     &testMsg,
!                     call AMSend.maxPayloadLength[111]())) = seqNo;
  			call AMSend.send[111](0xFFFF, &testMsg, 2);
  		}



More information about the Tinyos-2-commits mailing list