[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/at45db LogStorageP.nc, 1.1.2.18, 1.1.2.19

David Gay idgay at users.sourceforge.net
Mon Oct 30 09:22:25 PST 2006


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

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	LogStorageP.nc 
Log Message:
fix overwrite test


Index: LogStorageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/at45db/LogStorageP.nc,v
retrieving revision 1.1.2.18
retrieving revision 1.1.2.19
diff -C2 -d -r1.1.2.18 -r1.1.2.19
*** LogStorageP.nc	22 Sep 2006 22:00:09 -0000	1.1.2.18
--- LogStorageP.nc	30 Oct 2006 17:22:22 -0000	1.1.2.19
***************
*** 595,600 ****
      len -= count;
  
!     /* We lose data at the point we make the first write to a page */
!     if (offset == 0)
        recordsLost = TRUE;
  
--- 595,601 ----
      len -= count;
  
!     /* We normally lose data at the point we make the first write to a
!        page in a log that has circled. */
!     if (offset == 0 && s[client].circled)
        recordsLost = TRUE;
  



More information about the Tinyos-2-commits mailing list