mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 16:46:09 +08:00
cm8jl65: avoid flooding console with errors if errno is EAGAIN
Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
committed by
Beat Küng
parent
bc98a41d54
commit
75ab105605
@@ -166,8 +166,12 @@ CM8JL65::collect()
|
|||||||
index--;
|
index--;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} else if (bytes_read == -1 && errno == EAGAIN) {
|
||||||
|
return -EAGAIN;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
PX4_INFO("read error: %d", bytes_read);
|
|
||||||
|
PX4_ERR("read error: %i, errno: %i", bytes_read, errno);
|
||||||
perf_count(_comms_errors);
|
perf_count(_comms_errors);
|
||||||
perf_end(_sample_perf);
|
perf_end(_sample_perf);
|
||||||
return PX4_ERROR;
|
return PX4_ERROR;
|
||||||
|
|||||||
Reference in New Issue
Block a user