]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
remove even more duty cycle related LPL stuff which is not needed any more
authormmaroti <mmaroti>
Thu, 17 Sep 2009 21:12:38 +0000 (21:12 +0000)
committermmaroti <mmaroti>
Thu, 17 Sep 2009 21:12:38 +0000 (21:12 +0000)
tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc

index 12fd1cfea7716554e63c109faa47f37c05ab7a90..3030f26b078b1828022a5aee646ac15a01abbc58 100644 (file)
@@ -52,14 +52,16 @@ module LowPowerListeningLayerP
 
 implementation
 {
+#ifndef LPL_DEF_LOCAL_WAKEUP
+#define LPL_DEF_LOCAL_WAKEUP 0
+#endif
+
        enum
        {
                // minimum wakeup time to catch a transmission in milliseconds
                LISTEN_WAKEUP = 6U,     // use xxxL if LISTEN_WAKEUP * 10000 > 65535
 
                MIN_SLEEP = 2,          // the minimum sleep interval in milliseconds
-               MAX_SLEEP = 30000,      // the maximum sleep interval in milliseconds
-               MIN_DUTY = 2,           // the minimum duty cycle
        };
 
        uint16_t sleepInterval = LPL_DEF_LOCAL_WAKEUP;
@@ -352,8 +354,6 @@ implementation
        {
                if( interval < MIN_SLEEP )
                        interval = 0;
-               else if( interval > MAX_SLEEP )
-                       interval = MAX_SLEEP;
 
                sleepInterval = interval;
 
@@ -374,8 +374,6 @@ implementation
        {
                if( interval < MIN_SLEEP )
                        interval = 0;
-               else if( interval > MAX_SLEEP )
-                       interval = MAX_SLEEP;
 
                getMeta(msg)->sleepint = interval;
        }