X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf212%2FRF212RadioP.nc;h=57823fe33fbae5ce939cd4eb0584426095b27dab;hb=a8214d93267fc47a4edb5417f91f152bc505ea67;hp=14f32949e41972f09e09a622f2ee093b2958412e;hpb=44b78a152afc580c94bf6e2416f966dc206e3386;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf212/RF212RadioP.nc b/tos/chips/rf2xx/rf212/RF212RadioP.nc index 14f32949..57823fe3 100644 --- a/tos/chips/rf2xx/rf212/RF212RadioP.nc +++ b/tos/chips/rf2xx/rf212/RF212RadioP.nc @@ -320,7 +320,12 @@ implementation #ifdef LOW_POWER_LISTENING - async command bool LowPowerListeningConfig.getAckRequired(message_t* msg) + command bool LowPowerListeningConfig.needsAutoAckRequest(message_t* msg) + { + return call Ieee154PacketLayer.getDestAddr(msg) != TOS_BCAST_ADDR; + } + + command bool LowPowerListeningConfig.ackRequested(message_t* msg) { return call Ieee154PacketLayer.getAckRequired(msg); }