[Tinyos-help] bug of ftsp?

Omprakash Gnawali gnawali at usc.edu
Thu Apr 9 17:11:09 PDT 2009


Looks like a bug - I think mode_ in the following snippet is a typo:

        if (mode_ == TS_USER_MODE){

It should be mode.

Brano?

- om_p

On Thu, Apr 9, 2009 at 4:22 PM, Jiangjie He <hejiangjie at gmail.com> wrote:
> 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?


More information about the Tinyos-help mailing list