On May 1, 2008, at 12:03 PM, Kevin Klues wrote:
> As the code currently is, you're right, if start or stop ever fails,
> then there is a chance for lock up.  Doing a task repost after
> checking return conditions shuld fix this problem.  As you say though,
> if FAIL is returned indefinitely, then the task will be reposted
> forever, but then again you've got other problems if FAIL is
> perpetually being returned when trying to start or stop a device.....
> I'll check in the fix.

I don't think a spinning task loop is a good fix; it means that if a  
driver ever fails, the MCU will not enter a low power state.

Phil
_______________________________________________
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to