Hello all, I've been recently using the SplitControlPowerManagerC component to automatically control the Accelerometer and Photometer power for the tmote invent and encountered a problem, possibly a bug. The component calls *SplitControl.start() *and *SplitControl.stop()*, on PowerManagerP, but doesn't check the return value, assuming it always is SUCCESS.
In my code, I have a condition where the stop command returns EBUSY and the SplitControlPowerManagerC freezes my logic. Also, my code is fully compliant with TEP115. I believe that the error return should be checked for SplitControlPowerManagerC to be fully compliant to the TEP115, since it defines the behaviour and errors that the SplitControl interface should return. It also does not check errors on the *startDone* and *stopDone*events. I am working on a fix, if needed I can share my code. ~Dimas~
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
