X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fcc2420%2Flpl%2FDefaultLplP.nc;h=a1cf07cfe6bee4dbeff009d54ec4865b40479cd7;hb=815ef3b081a7a86619e82be995eddae5c907b46a;hp=3ada9db65353e9e75ee182fecf2c558124f87ac0;hpb=d99e9e4b31b1b6459b3811a5257a0c00821ab314;p=tinyos-2.x.git diff --git a/tos/chips/cc2420/lpl/DefaultLplP.nc b/tos/chips/cc2420/lpl/DefaultLplP.nc index 3ada9db6..a1cf07cf 100644 --- a/tos/chips/cc2420/lpl/DefaultLplP.nc +++ b/tos/chips/cc2420/lpl/DefaultLplP.nc @@ -56,7 +56,6 @@ module DefaultLplP { interface CC2420Transmit as Resend; interface RadioBackoff; interface Receive as SubReceive; - interface AMPacket; interface SplitControl as SubControl; interface PowerCycle; interface CC2420PacketBody; @@ -484,7 +483,7 @@ implementation { if(call LowPowerListening.getRxSleepInterval(currentSendMsg) > ONE_MESSAGE) { - if(call AMPacket.destination(currentSendMsg) == AM_BROADCAST_ADDR) { + if((call CC2420PacketBody.getHeader(currentSendMsg))->dest == IEEE154_BROADCAST_ADDR) { call PacketAcknowledgements.noAck(currentSendMsg); } else { // Send it repetitively within our transmit window