bugfix in test: script must yield to avoid infinitely looping at receive messages

This commit is contained in:
fros4943 2009-01-08 17:34:49 +00:00
parent 000fd29f4c
commit 268df2cadf

View File

@ -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");