]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/stm25p/Stm25pSectorP.nc
Merge over into the trunk.
[tinyos-2.x.git] / tos / chips / stm25p / Stm25pSectorP.nc
index 383a71ed7a47041075bed2af03c879e6084f6379..50bacc01ba0fa19a5c9ef4ed524edc3f4fc3e5bb 100644 (file)
@@ -107,13 +107,15 @@ implementation {
     return FAIL;
   }
   
-  async command void ClientResource.release[ uint8_t id ]() {
+  async command error_t ClientResource.release[ uint8_t id ]() {
     if ( m_client == id ) {
       m_state = S_IDLE;
       m_client = NO_CLIENT;
       call SpiResource.release();
       call Stm25pResource.release[ id ]();
+      return SUCCESS;
     }
+    return FAIL;
   }
   
   event void Stm25pResource.granted[ uint8_t id ]() {