]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tos/chips/cc2420/lpl/PowerCycleP.nc
Merge TinyOS 2.1.1 into master.
[tinyos-2.x.git] / tos / chips / cc2420 / lpl / PowerCycleP.nc
index 862315c7f0c5527c647d226c7ab6db954085275c..741224ce60d97ea226f00b67907ae6f902424cbd 100644 (file)
@@ -50,7 +50,9 @@
  *
  * @author David Moss
  */
+
+#include "DefaultLpl.h"
+
 module PowerCycleP {
   provides {
     interface PowerCycle;
@@ -73,7 +75,7 @@ module PowerCycleP {
 implementation {
   
   /** The current period of the duty cycle, equivalent of wakeup interval */
-  uint16_t sleepInterval = 0;
+  uint16_t sleepInterval = LPL_DEF_LOCAL_WAKEUP;
   
   /** The number of times the CCA has been sampled in this wakeup period */
   uint16_t ccaChecks;
@@ -97,7 +99,6 @@ implementation {
   bool finishSplitControlRequests();
   bool isDutyCycling();
   
-  
   /***************** PowerCycle Commands ****************/
   /**
    * Set the sleep interval, in binary milliseconds