]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/platforms/mica2/NestedResourceC.nc
Merge over into the trunk.
[tinyos-2.x.git] / tos / platforms / mica2 / NestedResourceC.nc
index a1ef26c72b6c441e1a0c29109a23b19e057456b2..35a2b31b9e69251eee18d91a629f3e7a4649f859 100644 (file)
@@ -51,9 +51,10 @@ implementation
     return EBUSY;
   }
 
-  async command void Resource.release() {
-    call Resource1.release();
-    call Resource2.release();
+  async command error_t Resource.release() {
+    if(call Resource1.release() == SUCCESS)
+       return call Resource2.release();
+    return FAIL;
   }
 
   async command uint8_t Resource.isOwner() {