improvements / debugging on I2C drivers

This commit is contained in:
Lorenz Meier
2012-08-24 14:58:14 +02:00
parent 45e178eaa3
commit d12c09cc86
9 changed files with 68 additions and 42 deletions
+2
View File
@@ -833,7 +833,9 @@ 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);