From 93789de9ddb586f40ebc7346ceeaa36e7b7b4c60 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 17 Feb 2008 14:11:48 +0000 Subject: [PATCH] Now that process initialization has been changed (back) to synchronous it needs to be called after reading the config file in order to preserve the existing logic. --- platform/apple2enh/contiki-main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/platform/apple2enh/contiki-main.c b/platform/apple2enh/contiki-main.c index dcf1cfe05..9755597b7 100644 --- a/platform/apple2enh/contiki-main.c +++ b/platform/apple2enh/contiki-main.c @@ -30,7 +30,7 @@ * * Author: Oliver Schmidt * - * $Id: contiki-main.c,v 1.15 2008/02/10 22:45:26 oliverschmidt Exp $ + * $Id: contiki-main.c,v 1.16 2008/02/17 14:11:48 oliverschmidt Exp $ */ #include "contiki-net.h" @@ -66,10 +66,6 @@ main(void) process_init(); - procinit_init(); - - autostart_start(autostart_processes); - #if 1 ethernet_config = config_read("contiki.cfg"); @@ -95,8 +91,12 @@ main(void) } #endif + procinit_init(); + process_start((struct process *)ðernet_process, (char *)ethernet_config); + autostart_start(autostart_processes); + log_message("Contiki up and running ...", ""); while(1) {