Skip to content
Snippets Groups Projects
Commit c3f7925c authored by Oleg Hahm's avatar Oleg Hahm
Browse files

tests: msg_send_receive: add a delay

Otherwise the pre-condition (receiver is already in RX block) is not met.
parent de74a64e
No related branches found
No related tags found
No related merge requests found
# name of your application
APPLICATION = msg_send_receive
USEMODULE += xtimer
include ../Makefile.tests_common
include $(RIOTBASE)/Makefile.include
......
......@@ -15,6 +15,7 @@
*
* @author Martine Lenders <mlenders@inf.fu-berlin.de>
* @author René Kijewski <rene.kijewski@fu-berlin.de>
* @author Oliver Hahm <oliver.hahm@inria.fr>
*
* @}
*/
......@@ -23,6 +24,7 @@
#include "cpu_conf.h"
#include "thread.h"
#include "xtimer.h"
#define THREAD1_STACKSIZE (THREAD_STACKSIZE_MAIN)
#define THREAD2_STACKSIZE (THREAD_STACKSIZE_MAIN)
......@@ -56,6 +58,7 @@ static void *thread1(void *args)
success = 0;
break;
}
xtimer_usleep(200);
}
if (success) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment