[Tinyos-2-commits] CVS: tinyos-2.x/apps/tests/storage/Block RandRWC.nc, 1.1.2.9, 1.1.2.10

David Gay idgay at users.sourceforge.net
Thu Sep 21 16:06:38 PDT 2006


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

Modified Files:
      Tag: tinyos-2_0_devel-BRANCH
	RandRWC.nc 
Log Message:
update for new block storage interface


Index: RandRWC.nc
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/apps/tests/storage/Block/RandRWC.nc,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -C2 -d -r1.1.2.9 -r1.1.2.10
*** RandRWC.nc	16 Jun 2006 22:53:10 -0000	1.1.2.9
--- RandRWC.nc	21 Sep 2006 23:06:36 -0000	1.1.2.10
***************
*** 152,156 ****
        {
  	call Leds.led2Toggle();
! 	scheck(call BlockWrite.commit());
        }
      else
--- 152,156 ----
        {
  	call Leds.led2Toggle();
! 	scheck(call BlockWrite.sync());
        }
      else
***************
*** 174,178 ****
    }
  
!   event void BlockWrite.commitDone(error_t result) {
      if (scheck(result))
        done();
--- 174,178 ----
    }
  
!   event void BlockWrite.syncDone(error_t result) {
      if (scheck(result))
        done();
***************
*** 185,196 ****
    }
  
-   event void BlockRead.verifyDone(error_t result) {
-     if (scheck(result))
-       {
- 	call Leds.led2Toggle();
- 	nextRead();
-       }
-   }
- 
    event void BlockRead.computeCrcDone(storage_addr_t x, storage_len_t y, uint16_t z, error_t result) {
    }
--- 185,188 ----
***************
*** 208,212 ****
  	break;
        case A_READ:
! 	scheck(call BlockRead.verify());
  	break;
        }
--- 200,204 ----
  	break;
        case A_READ:
! 	nextRead();
  	break;
        }



More information about the Tinyos-2-commits mailing list