[Tinyos-help] bug of ftsp?
Omprakash Gnawali
gnawali at usc.edu
Thu Apr 9 09:42:38 PDT 2009
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