Skip to content

Commit

Permalink
Merge pull request #2864 from kaspar030/fix_vtimer_msg_test
Browse files Browse the repository at this point in the history
tests: vtimer_msg: get back vtimer_set_msg call
  • Loading branch information
haukepetersen committed Apr 28, 2015
2 parents 2ffe2e6 + e6c3528 commit 78c7527
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/vtimer_msg/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ void *timer_thread(void *arg)
tmsg->interval.seconds,
tmsg->interval.microseconds,
tmsg->msg);

vtimer_set_msg(&tmsg->timer, tmsg->interval, thread_getpid(), MSG_TIMER, tmsg);
}
}

Expand Down
2 changes: 2 additions & 0 deletions tests/vtimer_msg_diff/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ void *timer_thread(void *arg)
printf("WARNING: timer difference %" PRId64 "us exceeds MAXDIFF(%d)!\n", diff, MAXDIFF);
}

vtimer_set_msg(&tmsg->timer, tmsg->interval, thread_getpid(), MSG_TIMER, tmsg);

if (tmsg->count >= MAXCOUNT) {
printf("Maximum count reached. (%d) Exiting.\n", MAXCOUNT);
break;
Expand Down

0 comments on commit 78c7527

Please sign in to comment.