[Tinyos-help] Different payloadLength for different compiles

Philip Levis pal at cs.stanford.edu
Wed Apr 7 13:02:02 PDT 2010


On Apr 7, 2010, at 12:45 PM, David Piotrowski wrote:

> Hi,
> 
> I just noticed that for different compiles of the same program Packet.payloadLength() returns different values for the same message_t variable. I didn't change any code that has anything to do with that message_t variable. I just stumbled accidently over this because I had a printf() message printing the length of that variable. The values so far ranged between about 50 to 210 bytes. Is that normal behaviour or should I worry?

If the buffer is uninitialized, the return value is undefined.

Phil


More information about the Tinyos-help mailing list