[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/stm25p Stm25pLogP.nc, 1.1.2.6, 1.1.2.7

Jonathan Hui jwhui at users.sourceforge.net
Mon Nov 13 09:04:09 PST 2006


Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/stm25p
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv11449

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	Stm25pLogP.nc 
Log Message:

Fix a bug observed by Urs Hunkeler. The mount operation contained
left-over debugging code from very early on. Caused the block search
during mount to be limited to two blocks.



Index: Stm25pLogP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/stm25p/Stm25pLogP.nc,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -C2 -d -r1.1.2.6 -r1.1.2.7
*** Stm25pLogP.nc	7 Nov 2006 23:15:09 -0000	1.1.2.6
--- Stm25pLogP.nc	13 Nov 2006 17:04:07 -0000	1.1.2.7
***************
*** 327,332 ****
  	}
  	// move on to next log block
! 	if ( (uint16_t)m_addr == 0 &&
! 	     ++block < (call Sector.getNumSectors[ id ]()*BLOCKS_PER_SECTOR)) {
  	  addr += BLOCK_SIZE;
  	  call Sector.read[ id ]( addr, (uint8_t*)&m_addr, sizeof( m_addr ) );
--- 327,331 ----
  	}
  	// move on to next log block
! 	if (++block < (call Sector.getNumSectors[ id ]()*BLOCKS_PER_SECTOR)) {
  	  addr += BLOCK_SIZE;
  	  call Sector.read[ id ]( addr, (uint8_t*)&m_addr, sizeof( m_addr ) );



More information about the Tinyos-2-commits mailing list