On Jun 7, 2010, at 12:21 AM, Xiaohui Liu wrote: > Hi all, > > Why is it necessary to call UartPacket.clear(msg) in uartSendTask() task of > BaseStationP? I don't see why uart message header has to be reset to be all > zero, which is exactly what UartPacket.clear() does. Thanks.
Because that message buffer might have been used for other things; rather than leave pre-set bits, they should be cleared. This is less of an issue for a UART message than for, say, a 802.15.4 message. Miklos led a discussion on this a few years ago. Phil _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
