Skip to content
Snippets Groups Projects
Commit 9b785731 authored by Julian Oes's avatar Julian Oes
Browse files

sensors: handle timeout

parent 22bd06e5
No related branches found
No related tags found
No related merge requests found
......@@ -631,6 +631,11 @@ Sensors::run()
int pret = px4_poll(&poll_fds, 1, 50);
/* if pret == 0 it timed out - periodic check for should_exit(), etc. */
if (pret == 0) {
continue;
}
/* this is undesirable but not much we can do - might want to flag unhappy status */
if (pret < 0) {
......@@ -642,7 +647,6 @@ Sensors::run()
}
px4_usleep(1000);
continue;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment