Skip to content
Snippets Groups Projects
Commit d2f6b351 authored by Kaspar Schleiser's avatar Kaspar Schleiser
Browse files

Merge pull request #3786 from kaspar030/fix_tests_xtimer_usleep_until

tests: xtimer_usleep_until: fix diff calculation
parents 92c09443 f85e21d2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
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