Uncommented radio init line.
Added informative output.
This commit is contained in:
parent
a6dba97b84
commit
0412975efd
1 changed files with 5 additions and 1 deletions
|
@ -139,7 +139,7 @@ main(void)
|
||||||
process_start(&etimer_process, NULL);
|
process_start(&etimer_process, NULL);
|
||||||
//process_start(&sensors_process, NULL);
|
//process_start(&sensors_process, NULL);
|
||||||
|
|
||||||
//cc1020_init(cc1020_config_19200);
|
cc1020_init(cc1020_config_19200);
|
||||||
|
|
||||||
// network configuration
|
// network configuration
|
||||||
node_id_restore();
|
node_id_restore();
|
||||||
|
@ -164,8 +164,12 @@ main(void)
|
||||||
|
|
||||||
leds_off(LEDS_ALL);
|
leds_off(LEDS_ALL);
|
||||||
lpm_on();
|
lpm_on();
|
||||||
|
|
||||||
|
printf("Autostarting processes\n");
|
||||||
autostart_start((struct process **) autostart_processes);
|
autostart_start((struct process **) autostart_processes);
|
||||||
|
|
||||||
|
printf(CONTIKI_VERSION_STRING " started. Node id %d.\n", node_id);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
while (process_run() > 0);
|
while (process_run() > 0);
|
||||||
if (process_nevents() == 0) {
|
if (process_nevents() == 0) {
|
||||||
|
|
Loading…
Reference in a new issue