From 028239e1a34b0753c05069d4e5728eb1b85132e6 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 3 Feb 2010 21:24:24 +0000 Subject: [PATCH] Added a timeout before the button is pressed, to allow it to initialize --- tools/cooja/contiki_tests/rime_collect_sky.csc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/cooja/contiki_tests/rime_collect_sky.csc b/tools/cooja/contiki_tests/rime_collect_sky.csc index 4a603c331..6da91f893 100644 --- a/tools/cooja/contiki_tests/rime_collect_sky.csc +++ b/tools/cooja/contiki_tests/rime_collect_sky.csc @@ -452,7 +452,10 @@ while(nodes_starting) { } /* Create sink */ -log.log("All nodes booted, creating sink at node " + id + "\n"); +sink = id; +GENERATE_MSG(1000, "continue"); +YIELD_THEN_WAIT_UNTIL(msg.equals("continue")); +log.log("All nodes booted, creating sink at node " + sink + "\n"); mote.getInterfaces().getButton().clickButton() while(true) {