mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-18 05:07:35 +08:00
format and disable some warnx output
This commit is contained in:
committed by
Lorenz Meier
parent
81ae5cbd0d
commit
7b7da618b8
@@ -198,11 +198,12 @@ static int frsky_telemetry_thread_main(int argc, char *argv[])
|
||||
*/
|
||||
int status = poll(fds, sizeof(fds) / sizeof(fds[0]), 3000);
|
||||
|
||||
// warnx("poll status: %u", status);
|
||||
if (status > 0) {
|
||||
/* received some data; check size of packet */
|
||||
usleep(5000);
|
||||
status = read(uart, &sbuf[0], sizeof(sbuf));
|
||||
warnx("received %u bytes", status);
|
||||
// warnx("received %u bytes", status);
|
||||
}
|
||||
|
||||
if (status > 0 && status < 3) {
|
||||
|
||||
Reference in New Issue
Block a user