From: mmaroti Date: Wed, 9 Sep 2009 19:52:52 +0000 (+0000) Subject: Use a regular send when the rxSleepInterval is set to 0 (and stop interpretting 0... X-Git-Tag: rc_6_tinyos_2_1_1~285 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=47c39f2a2015cef2f971f27033bfc223f27397f2 Use a regular send when the rxSleepInterval is set to 0 (and stop interpretting 0 as the localSleepInterval value) --- diff --git a/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc b/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc index 0b172040..5a78dcce 100644 --- a/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc +++ b/tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc @@ -418,9 +418,7 @@ implementation command uint16_t LowPowerListening.getRxSleepInterval(message_t *msg) { - uint16_t sleepint = getMeta(msg)->sleepint; - - return sleepint != 0 ? sleepint : sleepInterval; + return getMeta(msg)->sleepint; } command void LowPowerListening.setRxDutyCycle(message_t *msg, uint16_t dutyCycle)