Wait 1s before pressing the button to give the button sensor time to activate

This commit is contained in:
adamdunkels 2010-02-03 20:57:50 +00:00
parent 3746ffb4f1
commit 2e7ade836e

View File

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