[Tinyos-2-commits] [tinyos-main] r5746 committed - Small fix: added missing release/callback in timeout

tinyos-main at googlecode.com tinyos-main at googlecode.com
Fri Sep 16 01:40:54 PDT 2011


Revision: 5746
Author:   alinan at zolertia.com
Date:     Fri Sep 16 01:38:27 2011
Log:      Small fix: added missing release/callback in timeout
http://code.google.com/p/tinyos-main/source/detail?r=5746

Modified:
  /trunk/apps/tests/z1/Ziglets/SimpleTSL2563/TSLP.nc

=======================================
--- /trunk/apps/tests/z1/Ziglets/SimpleTSL2563/TSLP.nc	Sun Aug 14 08:01:48  
2011
+++ /trunk/apps/tests/z1/Ziglets/SimpleTSL2563/TSLP.nc	Fri Sep 16 01:38:27  
2011
@@ -160,6 +160,8 @@

    event void TimeoutTimer.fired(){
      printfUART("TSL: timeout\n");
+    call Resource.release();
+    signal Light.readDone(FAIL, 0);
    }

    default event void Light.readDone(error_t error, uint16_t data){


More information about the Tinyos-2-commits mailing list