]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Use a regular send when the rxSleepInterval is set to 0 (and stop interpretting 0...
authormmaroti <mmaroti>
Wed, 9 Sep 2009 19:52:52 +0000 (19:52 +0000)
committermmaroti <mmaroti>
Wed, 9 Sep 2009 19:52:52 +0000 (19:52 +0000)
tos/chips/rf2xx/layers/LowPowerListeningLayerP.nc

index 0b1720408ad79d49dbedfcec973b7fee28e9afdd..5a78dcce5f6429be4ab1f706bdff7b10641f7c8d 100644 (file)
@@ -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)