[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/at45db LogStorageP.nc,
1.4, 1.5
David Gay
idgay at users.sourceforge.net
Wed Jul 11 10:26:06 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/at45db
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv1083
Modified Files:
LogStorageP.nc
Log Message:
fix bug when syncing page containing read pointer
Index: LogStorageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/at45db/LogStorageP.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** LogStorageP.nc 20 Apr 2007 17:47:30 -0000 1.4
--- LogStorageP.nc 11 Jul 2007 17:26:04 -0000 1.5
***************
*** 268,271 ****
--- 268,274 ----
metadata.flags = F_SYNC | F_LASTVALID;
metadata.lastRecordOffset = s[client].woffset;
+ /* rend is now no longer the end of the page */
+ if (s[client].rpage == s[client].wpage)
+ s[client].rend = s[client].woffset;
wmetadataStart();
}
More information about the Tinyos-2-commits
mailing list