[Tinyos-devel] valid timestamp for FTSP?

Branislav Kusy kusy at stanford.edu
Tue Feb 17 09:51:00 PST 2009


fixed!

TimeSyncP.nc:
314        if( (state & STATE_PROCESSING) == 0
315            && call TimeSyncPacket.isValid(msg)) {
316            message_t* old = processedMsg;
317
318            processedMsg = msg;
319            ((TimeSyncMsg*)(payload))->localTime = call 
TimeSyncPacket.eventTime(msg);
320

b.

Miklos Maroti wrote:
> Yes, it should! Miklos
> 
> On Sat, Feb 14, 2009 at 10:31 AM, Omprakash Gnawali <gnawali at usc.edu> wrote:
>> Should FTSP call isValid() before using the return value of eventTime?
>>
>> TimeSyncP.nc:
>>  316
>>  317             processedMsg = msg;
>>  318             ((TimeSyncMsg*)(payload))->localTime = call
>> TimeSyncPacket.eventTime(msg);
>>  319
>>
>> - om_p
>> _______________________________________________
>> Tinyos-devel mailing list
>> Tinyos-devel at millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel
>>
> _______________________________________________
> Tinyos-devel mailing list
> Tinyos-devel at millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-devel


More information about the Tinyos-devel mailing list