[Tinyos-help] BcastM
Benjamin Madore
bcmadore at cs.pitt.edu
Thu Mar 15 14:04:22 PDT 2007
In BcastM.nc in /lib/Brodcast:
143 signal Receive.receive[id](pMsg,&pBCMsg->data[0],Len);
144 }
145 return pMsg;
146 }
Shouldn't it be something like:
XXX TOS_MsgPtr ret;
143 ret = signal Receive.receive[id](pMsg,&pBCMsg->data[0],Len);
144 }
145 return ret;
146 }
because it expects to be returned a TOS_MsgPtr that may have been swapped by
whatever component received the data?
--
The difference between the right word and the almost right word is really a
large matter- it's the difference between a lightning bug and the lightning.
-Twain
More information about the Tinyos-help
mailing list