mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 21:55:34 +08:00
Remove erroneous sensor read timing checks.
This commit is contained in:
@@ -807,9 +807,7 @@ test(int fd)
|
||||
|
||||
|
||||
/* do a simple demand read */
|
||||
uint64_t start_mag = hrt_absolute_time();
|
||||
sz = read(fd, &report, sizeof(report));
|
||||
test_note("time for read: %lld (should be below 2000!)", hrt_absolute_time() - start_mag);
|
||||
|
||||
if (sz != sizeof(report))
|
||||
return test_fail("immediate read failed: %d", errno);
|
||||
|
||||
@@ -833,9 +833,7 @@ test(int fd)
|
||||
|
||||
|
||||
/* do a simple demand read */
|
||||
uint64_t start_baro = hrt_absolute_time();
|
||||
sz = read(fd, &report, sizeof(report));
|
||||
test_note("time for read: %lld (should be below 2000!)", hrt_absolute_time() - start_baro);
|
||||
|
||||
if (sz != sizeof(report))
|
||||
return test_fail("immediate read failed: %d", errno);
|
||||
|
||||
Reference in New Issue
Block a user