From 47c39f2a2015cef2f971f27033bfc223f27397f2 Mon Sep 17 00:00:00 2001 From: mmaroti Date: Wed, 9 Sep 2009 19:52:52 +0000 Subject: [PATCH] Use a regular send when the rxSleepInterval is set to 0 (and stop interpretting 0 as the localSleepInterval value) --- tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.39.2