diff --git a/platform/apple2enh/contiki-main.c b/platform/apple2enh/contiki-main.c
index 53880ee7c..31539aa09 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.22 2010/10/23 08:17:45 oliverschmidt Exp $
+ * $Id: contiki-main.c,v 1.23 2010/10/27 22:17:39 oliverschmidt Exp $
*/
#include "contiki-net.h"
@@ -105,12 +105,11 @@ main(void)
while(1) {
+ process_run();
+
+ etimer_request_poll();
+
clock_update();
-
- if(process_run() < 2) {
-
- etimer_request_poll();
- }
}
}
/*-----------------------------------------------------------------------------------*/
diff --git a/platform/atari/contiki-main.c b/platform/atari/contiki-main.c
index 2f838b273..6c5c8116c 100644
--- a/platform/atari/contiki-main.c
+++ b/platform/atari/contiki-main.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * $Id: contiki-main.c,v 1.4 2010/10/23 08:17:45 oliverschmidt Exp $
+ * $Id: contiki-main.c,v 1.5 2010/10/27 22:17:39 oliverschmidt Exp $
*/
#include "contiki-net.h"
@@ -101,10 +101,9 @@ main(void)
while(1) {
- if(process_run() < 2) {
+ process_run();
- etimer_request_poll();
- }
+ etimer_request_poll();
}
}
/*-----------------------------------------------------------------------------------*/
diff --git a/platform/c128/contiki-main.c b/platform/c128/contiki-main.c
index 47478917d..84489c56e 100644
--- a/platform/c128/contiki-main.c
+++ b/platform/c128/contiki-main.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * $Id: contiki-main.c,v 1.9 2010/10/23 08:17:45 oliverschmidt Exp $
+ * $Id: contiki-main.c,v 1.10 2010/10/27 22:17:39 oliverschmidt Exp $
*/
#include
@@ -119,10 +119,9 @@ main(void)
while(1) {
- if(process_run() < 2) {
+ process_run();
- etimer_request_poll();
- }
+ etimer_request_poll();
}
}
/*-----------------------------------------------------------------------------------*/
diff --git a/platform/c64/contiki-main.c b/platform/c64/contiki-main.c
index a901b07c2..db60af8a3 100644
--- a/platform/c64/contiki-main.c
+++ b/platform/c64/contiki-main.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * $Id: contiki-main.c,v 1.24 2010/10/23 08:17:45 oliverschmidt Exp $
+ * $Id: contiki-main.c,v 1.25 2010/10/27 22:17:39 oliverschmidt Exp $
*/
#include
@@ -117,10 +117,9 @@ main(void)
while(1) {
- if(process_run() < 2) {
+ process_run();
- etimer_request_poll();
- }
+ etimer_request_poll();
}
}
/*-----------------------------------------------------------------------------------*/
diff --git a/platform/win32/contiki-main.c b/platform/win32/contiki-main.c
index 489618bb1..19bd8309f 100644
--- a/platform/win32/contiki-main.c
+++ b/platform/win32/contiki-main.c
@@ -30,7 +30,7 @@
*
* Author: Oliver Schmidt
*
- * $Id: contiki-main.c,v 1.20 2010/10/19 20:30:47 oliverschmidt Exp $
+ * $Id: contiki-main.c,v 1.21 2010/10/27 22:17:39 oliverschmidt Exp $
*/
#define WIN32_LEAN_AND_MEAN
@@ -123,16 +123,15 @@ main(void)
while(1) {
- if(process_run() < 2) {
+ process_run();
- if(console_resize()) {
+ etimer_request_poll();
+
+ /* Allow user-mode APC to execute. */
+ SleepEx(10, TRUE);
+
+ if(console_resize()) {
ctk_restore();
- }
-
- /* Allow user-mode APC to execute. */
- SleepEx(10, TRUE);
-
- etimer_request_poll();
}
}
}