Right...at least the periodic timer rejects anything below 3ms
in T1 post 1.1.10 so perhaps the one-shot is shot as well.
It does return an error, but who checks?
MS


Zainul M Charbiwala wrote:
> Hi,
> 
> I've seen instances where something "wrong" happens if the oneShot
> interval is set too low.
> 
> I would try the following:
> 
>> call report_timer.startOneShot( call Random.rand16() % TIMER_PERIOD_REPORT + 
>> MIN_DELAY );
> 
> where MIN_DELAY is like 5 ticks or so.
> 
> Zainul.
> 
> On Thu, Nov 5, 2009 at 2:21 AM,  <[email protected]> wrote:
>> Quoting Michiel Konstapel <[email protected]>:
>>> What happens when you "roll" a zero? Then you'll start the timer at an
>>> interval of 0 ms. Not sure how the timer treats that, but it'll either
>>> fire as fast as it can, or not at all. Both will probably not do what
>>> you want. You may want to use a minimum delay and/or use a one shot
>>> timer.
>>>
>>> HTH,
>>> Michiel
>>>
>> I thought that too, so I used a
>>
>> call report_timer.startOneShot( call Random.rand16() % TIMER_PERIOD_REPORT );
>>
>> in both functions (in the AMStartDone and the report_timer.fired()).
>>
>> But the result is the same. I also inserted a delay, that a random number 
>> from 0
>> is catched.
>>
>> Do you have any idea left?
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>> _______________________________________________
>> Tinyos-help mailing list
>> [email protected]
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>>
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to