mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-08-28 07:28:58 +00:00
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 New Issue
Block a user