From cb3f6de287765685644f43833564b07330085e5e Mon Sep 17 00:00:00 2001 From: razvanm Date: Thu, 17 Sep 2009 20:54:08 +0000 Subject: [PATCH] Fix a bug in LplAmSenderP. --- tos/system/LplAMSenderP.nc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tos/system/LplAMSenderP.nc b/tos/system/LplAMSenderP.nc index 59f1bd9b..62ccb5de 100644 --- a/tos/system/LplAMSenderP.nc +++ b/tos/system/LplAMSenderP.nc @@ -10,13 +10,13 @@ generic module LplAMSenderP() implementation { - event void SubAMSend.sendDone(message_t* msg, error_t error) + command error_t AMSend.send(am_addr_t addr, message_t* msg, uint8_t len) { call Lpl.setRemoteWakeupInterval(msg, call SystemLowPowerListening.getDefaultRemoteWakeupInterval()); - signal AMSend.sendDone(msg, error); + return call SubAMSend.send(addr, msg, len); } - command error_t AMSend.send(am_addr_t addr, message_t* msg, uint8_t len) { return call SubAMSend.send(addr, msg, len); } + event void SubAMSend.sendDone(message_t* msg, error_t error) { signal AMSend.sendDone(msg, error); } command error_t AMSend.cancel(message_t* msg) { return call SubAMSend.cancel(msg); } command uint8_t AMSend.maxPayloadLength() { return call SubAMSend.maxPayloadLength(); } command void* AMSend.getPayload(message_t* msg, uint8_t len) { return call SubAMSend.getPayload(msg, len); } -- 2.39.2