bugfix in test: script must yield to avoid infinitely looping at receive messages
This commit is contained in:
parent
000fd29f4c
commit
268df2cadf
|
@ -11,7 +11,7 @@ mote.getInterfaces().getButton().clickButton()
|
|||
|
||||
while (true) {
|
||||
/* Only handle receive messages */
|
||||
WAIT_UNTIL(msg.contains('received'));
|
||||
YIELD_AND_WAIT_UNTIL(msg.contains('received'));
|
||||
|
||||
/* Remember receiving node */
|
||||
log.log(id + " received a message\n");
|
||||
|
|
Loading…
Reference in a new issue