Make driver start less verbose

This commit is contained in:
Lorenz Meier 2014-03-21 08:07:56 +01:00
parent c5a1f4617c
commit 98ef3b9ab8
2 changed files with 4 additions and 10 deletions

View File

@ -132,7 +132,6 @@ ETSAirspeed::measure()
if (OK != ret) { if (OK != ret) {
perf_count(_comms_errors); perf_count(_comms_errors);
log("i2c::transfer returned %d", ret);
} }
return ret; return ret;

View File

@ -169,18 +169,13 @@ MEASAirspeed::collect()
uint8_t status = (val[0] & 0xC0) >> 6; uint8_t status = (val[0] & 0xC0) >> 6;
switch (status) { switch (status) {
case 0: break; case 0:
break;
case 1: case 1:
perf_count(_comms_errors); /* fallthrough */
perf_end(_sample_perf);
return -EAGAIN;
case 2: case 2:
perf_count(_comms_errors); /* fallthrough */
perf_end(_sample_perf);
return -EAGAIN;
case 3: case 3:
perf_count(_comms_errors); perf_count(_comms_errors);
perf_end(_sample_perf); perf_end(_sample_perf);