[Tinyos-contrib-commits] CVS: tinyos-1.x/contrib/vu/apps/RipsOneHop RipsDataCollectionM.nc, 1.2, 1.3

Brano Kusy kusyb at users.sourceforge.net
Fri Sep 21 23:45:24 PDT 2007


Update of /cvsroot/tinyos/tinyos-1.x/contrib/vu/apps/RipsOneHop
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv19426

Modified Files:
	RipsDataCollectionM.nc 
Log Message:
removed potentionally infinite loop in error handling

Index: RipsDataCollectionM.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/contrib/vu/apps/RipsOneHop/RipsDataCollectionM.nc,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** RipsDataCollectionM.nc	14 Sep 2007 04:13:43 -0000	1.2
--- RipsDataCollectionM.nc	22 Sep 2007 06:45:21 -0000	1.3
***************
*** 230,241 ****
  		*(uint16_t*)(&msg.data[0]) = TOS_LOCAL_ADDRESS;
  		*(uint16_t*)(&msg.data[2]) = line;
! 
!         call Leds.set(5);
!         if (!call SendDBGMsg.send(TOS_BCAST_ADDR, 4, &msg)){
!             call Leds.set(4);
!             post reportError();
!             call Leds.redToggle();
!         }
! 		NEXT_STATE(STATE_READY);
  	}
  	event result_t SendDBGMsg.sendDone(TOS_MsgPtr p, result_t success)
--- 230,237 ----
  		*(uint16_t*)(&msg.data[0]) = TOS_LOCAL_ADDRESS;
  		*(uint16_t*)(&msg.data[2]) = line;
! 		*(uint16_t*)(&msg.data[4]) = state;
!         call SendDBGMsg.send(TOS_BCAST_ADDR, 5, &msg);
! 	    NEXT_STATE(STATE_READY);
! 	    signal RipsDataCollection.collectionEnded(FAIL);
  	}
  	event result_t SendDBGMsg.sendDone(TOS_MsgPtr p, result_t success)



More information about the Tinyos-contrib-commits mailing list