forked from Archive/PX4-Autopilot
Only read 5 values, then return
This commit is contained in:
parent
0fa03e65ab
commit
a06b3e50ab
|
@ -71,7 +71,7 @@ int px4_simple_app_main(int argc, char *argv[])
|
|||
|
||||
int error_counter = 0;
|
||||
|
||||
while (true) {
|
||||
for (int i = 0; i < 5; i++) {
|
||||
/* wait for sensor update of 1 file descriptor for 1000 ms (1 second) */
|
||||
int poll_ret = poll(fds, 1, 1000);
|
||||
|
||||
|
|
Loading…
Reference in New Issue