On Aug 7, 2009, at 3:54 PM, Eric Decker wrote:

>
>
> On Fri, Aug 7, 2009 at 12:35 PM, Chieh-Jan Mike Liang <clia...@cs.jhu.edu 
> > wrote:
> Hi Jacob,
>
> I believe Packet.clear() is supposed to clear the packet header and
> metadata only. There was a discussion some time ago.
>
> That is what Phil Levis has stated.   The code reflects a different  
> reality.
>
> Some of the code clears the entire message buffer,  other code does  
> as advertised.

Right -- so there are some bugs to fix. I'll look into the XE1205. I  
think that these discrepancies come from the fact that the clear()  
semantics changed after some experience. Originally it was "clear the  
buffer" then after some use we realized it should be clear the  
headers. So older code can have the old semantics.

Phil

_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to