[Tinyos-devel] Bug in AM.h in T2 release
Joe Polastre
joe at polastre.com
Mon Nov 20 12:09:29 PST 2006
FYI,
TOS_AM_ADDRESS will never get updated on a 'make platform reinstall'
command because it is statically compiled into the app. See the
following from AM.h:
#ifndef DEFINED_TOS_AM_ADDRESS
#define DEFINED_TOS_AM_ADDRESS 1
#endif
enum {
TOS_AM_GROUP = DEFINED_TOS_AM_GROUP,
TOS_AM_ADDRESS = DEFINED_TOS_AM_ADDRESS
};
A quick fix (proposed by Cory) is to #define TOS_AM_ADDRESS to
directly call the AM.address() function.
Best,
-Joe
More information about the Tinyos-devel
mailing list