[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/rf230 RF230LayerP.nc, 1.22, 1.23

Miklos Maroti mmaroti at users.sourceforge.net
Wed Feb 25 15:28:05 PST 2009


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/rf230
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv9136

Modified Files:
	RF230LayerP.nc 
Log Message:
fix setChannel in SLEEP state

Index: RF230LayerP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/rf230/RF230LayerP.nc,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** RF230LayerP.nc	25 Feb 2009 20:44:02 -0000	1.22
--- RF230LayerP.nc	25 Feb 2009 23:27:59 -0000	1.23
***************
*** 325,328 ****
--- 325,331 ----
  			call IRQ.captureRisingEdge();
  
+ 			// setChannel was ignored in SLEEP because the SPI was not working, so do it here
+ 			writeRegister(RF230_PHY_CC_CCA, RF230_CCA_MODE_VALUE | channel);
+ 
  			writeRegister(RF230_TRX_STATE, RF230_RX_ON);
  			state = STATE_TRX_OFF_2_RX_ON;



More information about the Tinyos-2-commits mailing list