]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - apps/AntiTheft/Nodes/AntiTheftC.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / apps / AntiTheft / Nodes / AntiTheftC.nc
index 4330df95d40749b84caf7a9f4bb18d8191702c9e..3d502a929713062d388d1dd524f5501483391feb 100644 (file)
@@ -38,7 +38,7 @@ implementation
 {
   enum {
     /* Threshold for considering mote in a dark place */
-    DARK_THRESHOLD = 200, 
+    DARK_THRESHOLD = 600, 
 
     /* Amount of time warning leds should stay on (in checkInterval counts) */
     WARNING_TIME = 3,
@@ -138,13 +138,13 @@ implementation
   }
 
   /* Radio started. Now start the collection protocol and set the
-     radio to a 2% low-power-listening duty cycle */
+     wakeup interval for low-power-listening wakeup to half a second. */
   event void RadioControl.startDone(error_t ok) {
     if (ok == SUCCESS)
       {
        call DisseminationControl.start();
        call CollectionControl.start();
-       call LowPowerListening.setLocalDutyCycle(200);
+       call LowPowerListening.setLocalWakeupInterval(512);
       }
     else
       errorLed();