]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/stm25p/Stm25pLogP.nc
Swapping HEAD and DEVEL branches
[tinyos-2.x.git] / tos / chips / stm25p / Stm25pLogP.nc
index 1429f7bd0be10e1a3d625cca291ce0766d55d03e..192b01b3eefc7a622e9cceb60dae7859d7b3b029 100644 (file)
@@ -326,8 +326,7 @@ implementation {
            log_info->write_addr = m_addr;
        }
        // move on to next log block
-       if ( (uint16_t)m_addr == 0 &&
-            ++block < (call Sector.getNumSectors[ id ]()*BLOCKS_PER_SECTOR)) {
+       if (++block < (call Sector.getNumSectors[ id ]()*BLOCKS_PER_SECTOR)) {
          addr += BLOCK_SIZE;
          call Sector.read[ id ]( addr, (uint8_t*)&m_addr, sizeof( m_addr ) );
        }