Move to channel 15.
This commit is contained in:
parent
60e930a64d
commit
b9f81cf915
1 changed files with 7 additions and 4 deletions
|
@ -26,7 +26,7 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* @(#)$Id: dhclient.c,v 1.4 2006/10/10 18:25:36 bg- Exp $
|
* @(#)$Id: dhclient.c,v 1.5 2006/12/01 14:57:19 bg- Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -87,7 +87,9 @@ PROCESS(dhclient_process, "Dhclient process");
|
||||||
/* Radio stuff in network byte order. */
|
/* Radio stuff in network byte order. */
|
||||||
static u16_t panId = HTONS(0x2024);
|
static u16_t panId = HTONS(0x2024);
|
||||||
|
|
||||||
#define RF_CHANNEL 26
|
#ifndef RF_CHANNEL
|
||||||
|
#define RF_CHANNEL 15
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
|
@ -101,7 +103,7 @@ main(int argc, char **argv)
|
||||||
leds_toggle(LEDS_RED | LEDS_GREEN | LEDS_BLUE);
|
leds_toggle(LEDS_RED | LEDS_GREEN | LEDS_BLUE);
|
||||||
slip_arch_init(); /* Must come before first printf */
|
slip_arch_init(); /* Must come before first printf */
|
||||||
printf("Starting %s "
|
printf("Starting %s "
|
||||||
"($Id: dhclient.c,v 1.4 2006/10/10 18:25:36 bg- Exp $)\n", __FILE__);
|
"($Id: dhclient.c,v 1.5 2006/12/01 14:57:19 bg- Exp $)\n", __FILE__);
|
||||||
ds2411_init();
|
ds2411_init();
|
||||||
sensors_light_init();
|
sensors_light_init();
|
||||||
cc2420_init();
|
cc2420_init();
|
||||||
|
@ -116,7 +118,8 @@ main(int argc, char **argv)
|
||||||
ds2411_id[0], ds2411_id[1], ds2411_id[2], ds2411_id[3],
|
ds2411_id[0], ds2411_id[1], ds2411_id[2], ds2411_id[3],
|
||||||
ds2411_id[4], ds2411_id[5], ds2411_id[6], ds2411_id[7]);
|
ds2411_id[4], ds2411_id[5], ds2411_id[6], ds2411_id[7]);
|
||||||
|
|
||||||
srand((ds2411_id[3]<<8) + (ds2411_id[4]<<6) + (ds2411_id[5]<<4) +
|
srand(rand() +
|
||||||
|
(ds2411_id[3]<<8) + (ds2411_id[4]<<6) + (ds2411_id[5]<<4) +
|
||||||
(ds2411_id[6]<<2) + ds2411_id[7]);
|
(ds2411_id[6]<<2) + ds2411_id[7]);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue