Skip to content

Commit

Permalink
Merge pull request #3786 from kaspar030/fix_tests_xtimer_usleep_until
Browse files Browse the repository at this point in the history
tests: xtimer_usleep_until: fix diff calculation
  • Loading branch information
kaspar030 committed Sep 7, 2015
2 parents 92c0944 + f85e21d commit d2f6b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/xtimer_usleep_until/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int main(void)
uint32_t last_wakeup = xtimer_now();
uint32_t before = last_wakeup;
xtimer_usleep_until(&last_wakeup, (unsigned)interval);
uint32_t diff = (last_wakeup-before)-interval;
uint32_t diff = (xtimer_now()-before)-interval;
res[i] = diff;
interval -= 1;
}
Expand Down

0 comments on commit d2f6b35

Please sign in to comment.