[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/storage/Log RandRWC.nc, 1.4, 1.5

David Gay idgay at users.sourceforge.net
Fri Apr 20 10:39:40 PDT 2007


Update of /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log
In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv5025

Modified Files:
	RandRWC.nc 
Log Message:
handle full log


Index: RandRWC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Log/RandRWC.nc,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** RandRWC.nc	12 Dec 2006 18:22:52 -0000	1.4
--- RandRWC.nc	20 Apr 2007 17:39:37 -0000	1.5
***************
*** 100,103 ****
--- 100,105 ----
    }
  
+   volatile int x;
+ 
    void setParameters() {
      len = rand() >> 8;
***************
*** 139,143 ****
  
    event void LogWrite.appendDone(void *buf, storage_len_t y, bool recordsLost, error_t result) {
!     if (scheck(result))
        nextWrite();
    }
--- 141,147 ----
  
    event void LogWrite.appendDone(void *buf, storage_len_t y, bool recordsLost, error_t result) {
!     if (result == ESIZE)
!       scheck(call LogWrite.sync());
!     else if (scheck(result))
        nextWrite();
    }



More information about the Tinyos-2-commits mailing list