Browse Source

Merge pull request #7256 from kaspar030/fix_xtimer_msg_receive_timeout

tests: xtimer_msg_receive_timeout: always wait for not received message
master
Martine Lenders 6 years ago committed by GitHub
parent
commit
7cfe818c09
  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