[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/mica2/mts300 TestMts300P.nc, 1.6, 1.7

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


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

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


Index: TestMts300P.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/mica2/mts300/TestMts300P.nc,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** TestMts300P.nc	14 Mar 2007 03:22:37 -0000	1.6
--- TestMts300P.nc	13 Sep 2007 23:10:22 -0000	1.7
***************
*** 99,103 ****
      packet_ready = FALSE;
      state = STATE_IDLE;
!     pMsg = (Mts300Msg*)call RadioPacket.getPayload(&packet, NULL);
  
      // Zero out the accelerometer, chrl at 20070213
--- 99,107 ----
      packet_ready = FALSE;
      state = STATE_IDLE;
!     pMsg = (Mts300Msg*)call RadioPacket.getPayload(&packet, sizeof(Mts300Msg));
!     if (pMsg == NULL) {
!       call Leds.led0On();
!       return;
!     }
  
      // Zero out the accelerometer, chrl at 20070213



More information about the Tinyos-2-commits mailing list