[Tinyos-2-commits] CVS: tinyos-2.x/tos/chips/at45db LogStorageP.nc,
1.3, 1.4
David Gay
idgay at users.sourceforge.net
Fri Apr 20 10:47:33 PDT 2007
Update of /cvsroot/tinyos/tinyos-2.x/tos/chips/at45db
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv8496
Modified Files:
LogStorageP.nc
Log Message:
fix end of log volume handling
Index: LogStorageP.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tos/chips/at45db/LogStorageP.nc,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** LogStorageP.nc 7 Nov 2006 19:30:43 -0000 1.3
--- LogStorageP.nc 20 Apr 2007 17:47:30 -0000 1.4
***************
*** 634,638 ****
we would not sync the last page, breaking the log volume
invariant */
! if (s[client].wpos % vlen >= vlen - len)
sync();
else
--- 634,638 ----
we would not sync the last page, breaking the log volume
invariant */
! if ((s[client].wpos - PAGE_SIZE) % vlen >= vlen - len)
sync();
else
More information about the Tinyos-2-commits
mailing list