add channel info in packet.
@@ -25,7 +25,7 @@ end of frame event), it will turn on its error LED.
//=========================== defines =========================================
-#define LENGTH_PACKET 30+LENGTH_CRC ///< maximum length is 127 bytes
+#define LENGTH_PACKET 125+LENGTH_CRC ///< maximum length is 127 bytes
#define LEN_PKT_TO_SEND 20+LENGTH_CRC
#define CHANNEL 11 ///< 11=2.405GHz
#define TIMER_PERIOD (0xffff>>4) ///< 0xffff = 2s@32kHz
@@ -269,6 +269,7 @@ int mote_main(void) {
app_vars.packet[i++] = 'e';
app_vars.packet[i++] = 's';
app_vars.packet[i++] = 't';
+ app_vars.packet[i++] = CHANNEL;
while (i<app_vars.packet_len) {
app_vars.packet[i++] = ID;
}
