]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/system/ArbitratedReadC.nc
Update tos-bsl for win32 python
[tinyos-2.x.git] / tos / system / ArbitratedReadC.nc
index 2c8487f898747fc6b92dc696a18fa80461423439..237b7fb0ffe63e49b3e593cdb156a82d5f37b278 100644 (file)
@@ -20,7 +20,7 @@
  *
  * @author David Gay
  */
-generic module ArbitratedReadC(typedef width_t) {
+generic module ArbitratedReadC(typedef width_t) @safe() {
   provides interface Read<width_t>[uint8_t client];
   uses {
     interface Read<width_t> as Service[uint8_t client];
@@ -44,7 +44,7 @@ implementation {
   default async command error_t Resource.request[uint8_t client]() { 
     return FAIL; 
   }
-  default async command void Resource.release[uint8_t client]() { }
+  default async command error_t Resource.release[uint8_t client]() { return FAIL; }
   default event void Read.readDone[uint8_t client](error_t result, width_t data) { }
   default command error_t Service.read[uint8_t client]() {
     return SUCCESS;