Wait 1s before pressing the button to give the button sensor time to activate
This commit is contained in:
parent
3746ffb4f1
commit
2e7ade836e
1 changed files with 2 additions and 0 deletions
|
@ -230,6 +230,8 @@ for (i=1; i <= 10; i++) {
|
|||
}
|
||||
|
||||
WAIT_UNTIL(id == 1 && msg.contains('Starting'));
|
||||
GENERATE_MSG(1000, "continue");
|
||||
YIELD_THEN_WAIT_UNTIL(msg.equals("continue"));
|
||||
log.log("Node 1 started. Clicking node button.\n");
|
||||
mote.getInterfaces().getButton().clickButton()
|
||||
|
||||
|
|
Loading…
Reference in a new issue