interface State as SendState;
interface PacketAcknowledgements;
interface Timer<TMilli> as DelayTimer;
- interface AMPacket;
interface CC2420PacketBody;
}
}
return call SubSend.maxPayloadLength();
}
- command void *Send.getPayload(message_t* msg) {
- return call SubSend.getPayload(msg);
+ command void *Send.getPayload(message_t* msg, uint8_t len) {
+ return call SubSend.getPayload(msg, len);
}
void signalDone(error_t error) {
call DelayTimer.stop();
call SendState.toIdle();
+ (call CC2420PacketBody.getMetadata(currentSendMsg))->maxRetries = totalRetries;
signal Send.sendDone(currentSendMsg, error);
}
}