On Mar 26, 2008, at 8:20 AM, Eric Keller wrote:

Maybe I'm not programming in the spirit of tinyos, but I don't ever call resource release under normal circumstances. I certainly see no reason to do it in code where there is only one place where sampling is done and
the sample rate is fairly high.

Your code looks like it should work, but it is complex enough that I
could be wrong.

If you don't call release, then TinyOS can't power down the ADC and let the MCU drop into a lower power state. If you're not concerned with idle draw, then this doesn't matter, but if you want a long node lifetime, it does. Kevin's SOSP 2007 paper goes into the details.

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

Reply via email to