cm8jl65: avoid flooding console with errors if errno is EAGAIN

Signed-off-by: Claudio Micheli <claudio@auterion.com>
This commit is contained in:
Claudio Micheli
2020-08-10 16:02:09 +02:00
committed by Beat Küng
parent bc98a41d54
commit 75ab105605
@@ -166,8 +166,12 @@ CM8JL65::collect()
index--;
}
} else if (bytes_read == -1 && errno == EAGAIN) {
return -EAGAIN;
} else {
PX4_INFO("read error: %d", bytes_read);
PX4_ERR("read error: %i, errno: %i", bytes_read, errno);
perf_count(_comms_errors);
perf_end(_sample_perf);
return PX4_ERROR;