mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-22 10:30:13 +00:00
Added a timeout before the button is pressed, to allow it to initialize
This commit is contained in:
parent
a13b6697df
commit
028239e1a3
@ -452,7 +452,10 @@ while(nodes_starting) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Create sink */
|
/* 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()
|
mote.getInterfaces().getButton().clickButton()
|
||||||
|
|
||||||
while(true) {
|
while(true) {
|
||||||
|
Loading…
Reference in New Issue
Block a user