mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
Only read 5 values, then return
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user