[Tinyos-devel] SerialP.nc rxState and txState state variables
Chieh-Jan (Mike) Liang
cliang4 at cs.jhu.edu
Thu Feb 26 02:48:10 PST 2009
I think there is a problem with rxState and txState variables in
SerialP.nc. Specifically, they are not properly set in
SplitControl.start(). If you first stop the serial stack and then
start it, both rxState and txState are still RXSTATE_INACTIVE and
TXSTATE_INACTIVE respectively. Normally, we only start the serial
stack, and this is fine because both state variables are init-ed to
RXSTATE_NOSYNC and TXSTATE_IDLE in Init.init().
I have attached the patch, and please let me know if I am mistaken.
Thank you
Mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 513 bytes
Desc: not available
Url : https://www.millennium.berkeley.edu/pipermail/tinyos-devel/attachments/20090226/a9dda527/attachment.obj
-------------- next part --------------
More information about the Tinyos-devel
mailing list