[Tinyos-help] bug of ftsp?
Jiangjie He
hejiangjie at gmail.com
Thu Apr 9 16:22:59 PDT 2009
Thanks for reply. But I see 'mode_' here is the parameter of the
setMode function while 'mode' has the previous mode. if user change to
TS_USER_MODE mode,which mode_==TS_USER_MODE, then the function start
the timer instead of stopping it?
2009/4/10 Omprakash Gnawali <gnawali at usc.edu>:
> On Wed, Apr 8, 2009 at 6:48 AM, Jiangjie He <hejiangjie at gmail.com> wrote:
>> Hi, all
>> Recently I am reading the code of ftsp. I've noticed a problem in
>> /tinyos-2.1.0/tos/lib/ftsp/TimeSyncP.nc. At line 402, is it a mistype
>> of "TS_USER_MODE", which should be "TS_TIMER_MODE". In description of
>> interface TimeSyncMode, it said the timer is stopped when mode is set
>> to TS_USER_MODE. so is it a bug or just my misunderstanding?
>
> mode_ has the previous mode. So if the previous mode was TS_USER_MODE
> and the user wants to change the mode, we want to start the timer.
>
> - om_p
>
More information about the Tinyos-help
mailing list