s3lsensor / snowfort

SnowFort: An open source wireless sensor network for infrastructure and environmental monitoring
http://www.snowfort.org
Other
6 stars 8 forks source link

use macro for BS and mote RDC codes #11

Closed yzliao closed 11 years ago

yzliao commented 11 years ago

Currently, we use if statement to separate the code for BS and mote in RDC. Instead, we should use a macro, such as

#if (SN_ID == 0)
/*BS code*/
#else
/*mote code*/
#endif

By using this macro, the code size can be reduced.

yzliao commented 11 years ago

solved in #30