Browse Source

tests: xtimer_msg_receive_timeout: always wait for not received message

master
Kaspar Schleiser 5 years ago
parent
commit
4c717d42c1
  1. 1
      tests/xtimer_msg_receive_timeout/main.c

1
tests/xtimer_msg_receive_timeout/main.c

@ -40,6 +40,7 @@ int main(void)
xtimer_set_msg(&t, TEST_PERIOD + offset, &tmsg, sched_active_pid);
if (xtimer_msg_receive_timeout(&m, TEST_PERIOD) < 0) {
puts("Timeout!");
msg_receive(&m);
}
else {
printf("Message: %" PRIu16 "\n", m.type);

Loading…
Cancel
Save