]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/tutorials/BlinkFail/BlinkFailC.nc
document this app a bit
[tinyos-2.x.git] / apps / tutorials / BlinkFail / BlinkFailC.nc
index 76ea293d5cc6aa4d5e60201bf3c2e4c06f46e104..e27d221a17fad0e9c95196d87259799699333a92 100644 (file)
@@ -30,8 +30,8 @@
  */
 
 /**
- * Implementation for Blink application.  Toggle the red LED when a
- * Timer fires.
+ * Implementation for BlinkFail application.  Toggle the LEDs when a
+ * Timer fires.  Access out of bounds storage after a few seconds.
  **/
 
 #include "Timer.h"
@@ -66,6 +66,7 @@ implementation
   {
     dbg("BlinkFailC", "Timer 1 fired @ %s \n", sim_time_string());
     call Leds.led1Toggle();
+    // here we violate memory safety on the 11th signal of this event
     a[i++] = 1;
   }