mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #5820 from makomi/xtimer_now64_continuity
tests/xtimer_now64_continuity: fix variableScope (cppcheck)
This commit is contained in:
commit
d94e53690b
@ -29,11 +29,10 @@
|
||||
int main(void)
|
||||
{
|
||||
uint32_t n = ITERATIONS;
|
||||
uint64_t now;
|
||||
uint64_t before = xtimer_now64();
|
||||
|
||||
while(--n) {
|
||||
now = xtimer_now64();
|
||||
uint64_t now = xtimer_now64();
|
||||
if ((now-before) > MAXDIFF) {
|
||||
puts("TEST FAILED.");
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user