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) {
|
if (OK != ret) {
|
||||||
perf_count(_comms_errors);
|
perf_count(_comms_errors);
|
||||||
log("i2c::transfer returned %d", ret);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue