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 */
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue