X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Frf2xx%2Frf230%2FRF230RadioP.nc;h=f4b0eab716172d4bfd62c7768d5bf90b3eaec53d;hb=a8214d93267fc47a4edb5417f91f152bc505ea67;hp=db37bee3d07df52a59684eeb5a7137bbe345b16b;hpb=44b78a152afc580c94bf6e2416f966dc206e3386;p=tinyos-2.x.git diff --git a/tos/chips/rf2xx/rf230/RF230RadioP.nc b/tos/chips/rf2xx/rf230/RF230RadioP.nc index db37bee3..f4b0eab7 100644 --- a/tos/chips/rf2xx/rf230/RF230RadioP.nc +++ b/tos/chips/rf2xx/rf230/RF230RadioP.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); }