Added a timeout before the button is pressed, to allow it to initialize

This commit is contained in:
adamdunkels 2010-02-03 21:24:24 +00:00
parent a13b6697df
commit 028239e1a3

View file

@ -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) {