X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2Flpl%2FPowerCycleP.nc;h=741224ce60d97ea226f00b67907ae6f902424cbd;hp=34099244f5fd5fd982902d2345fee96c2c795d8a;hb=e9bfab607e051bae6afb47b44892ce37541d1b44;hpb=adf1de6c009d13b7b52e68535c63b28f59c97400 diff --git a/tos/chips/cc2420/lpl/PowerCycleP.nc b/tos/chips/cc2420/lpl/PowerCycleP.nc index 34099244..741224ce 100644 --- a/tos/chips/cc2420/lpl/PowerCycleP.nc +++ b/tos/chips/cc2420/lpl/PowerCycleP.nc @@ -75,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; @@ -99,7 +99,6 @@ implementation { bool finishSplitControlRequests(); bool isDutyCycling(); - /***************** PowerCycle Commands ****************/ /** * Set the sleep interval, in binary milliseconds