diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-03-28 19:51:15 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-03-28 19:51:15 +0100 |
commit | 32e790110e766c0f6fbd5c439d15f2649df2c542 (patch) | |
tree | 699d9ee1cab7e50b086b7367924cd462189cf02a /src/systemcmds/tests/test_time.c | |
parent | b24af0f402ed5512d078c7afc0aa92e7ce1c166b (diff) | |
download | px4-firmware-32e790110e766c0f6fbd5c439d15f2649df2c542.tar.gz px4-firmware-32e790110e766c0f6fbd5c439d15f2649df2c542.tar.bz2 px4-firmware-32e790110e766c0f6fbd5c439d15f2649df2c542.zip |
Tests: Fix code style on system tests
Diffstat (limited to 'src/systemcmds/tests/test_time.c')
-rw-r--r-- | src/systemcmds/tests/test_time.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/systemcmds/tests/test_time.c b/src/systemcmds/tests/test_time.c index 8a164f3fc..78e13a242 100644 --- a/src/systemcmds/tests/test_time.c +++ b/src/systemcmds/tests/test_time.c @@ -90,8 +90,9 @@ cycletime(void) cycles = *(unsigned long *)0xe0001004; - if (cycles < lasttime) + if (cycles < lasttime) { basetime += 0x100000000ULL; + } lasttime = cycles; @@ -147,11 +148,13 @@ int test_time(int argc, char *argv[]) delta = abs(h - c); deltadelta = abs(delta - lowdelta); - if (deltadelta > maxdelta) + if (deltadelta > maxdelta) { maxdelta = deltadelta; + } - if (deltadelta > 1000) + if (deltadelta > 1000) { fprintf(stderr, "h %llu c %llu d %lld\n", h, c, delta - lowdelta); + } } printf("Maximum jitter %lldus\n", maxdelta); |