]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/ArbiterP.nc
Teach tos-storage-stm25p to derive NUM_SECTORS and SECTOR_SIZE.
[tinyos-2.x.git] / tos / system / ArbiterP.nc
index 8933f304fca4506567c1e52f0099a8e331c7bbb6..f7b2fcedab33f221b78ada452ab1a10c46efed2f 100644 (file)
@@ -49,7 +49,7 @@
  * @author Philip Levis
  */
  
-generic module ArbiterP(uint8_t default_owner_id) {
+generic module ArbiterP(uint8_t default_owner_id) @safe() {
   provides {
     interface Resource[uint8_t id];
     interface ResourceRequested[uint8_t id];
@@ -120,6 +120,7 @@ implementation {
           call ResourceConfigure.unconfigure[id]();
           signal ResourceDefaultOwner.granted();
         }
+        return SUCCESS;
       }
     }
     return FAIL;