[Tinyos-help] SplitControlPowerManagerC not checking errors (BUG?)
Philip Levis
pal at cs.stanford.edu
Thu May 1 12:59:10 PDT 2008
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
More information about the Tinyos-help
mailing list