forked from Archive/PX4-Autopilot
Make driver start less verbose
This commit is contained in:
parent
c5a1f4617c
commit
98ef3b9ab8
|
@ -132,7 +132,6 @@ ETSAirspeed::measure()
|
|||
|
||||
if (OK != ret) {
|
||||
perf_count(_comms_errors);
|
||||
log("i2c::transfer returned %d", ret);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
|
@ -169,18 +169,13 @@ MEASAirspeed::collect()
|
|||
uint8_t status = (val[0] & 0xC0) >> 6;
|
||||
|
||||
switch (status) {
|
||||
case 0: break;
|
||||
case 0:
|
||||
break;
|
||||
|
||||
case 1:
|
||||
perf_count(_comms_errors);
|
||||
perf_end(_sample_perf);
|
||||
return -EAGAIN;
|
||||
|
||||
/* fallthrough */
|
||||
case 2:
|
||||
perf_count(_comms_errors);
|
||||
perf_end(_sample_perf);
|
||||
return -EAGAIN;
|
||||
|
||||
/* fallthrough */
|
||||
case 3:
|
||||
perf_count(_comms_errors);
|
||||
perf_end(_sample_perf);
|
||||
|
|
Loading…
Reference in New Issue