From: mmaroti Date: Thu, 17 Sep 2009 21:12:38 +0000 (+0000) Subject: remove even more duty cycle related LPL stuff which is not needed any more X-Git-Tag: rc_6_tinyos_2_1_1~251 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=49cc8fcafaeab25abbf27e0636a18985a2996654 remove even more duty cycle related LPL stuff which is not needed any more --- diff --git a/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc b/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc index 12fd1cfe..3030f26b 100644 --- a/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc +++ b/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc @@ -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; }