Only read 5 values, then return

This commit is contained in:
Julian Oes 2013-10-29 13:38:44 +01:00 committed by Lorenz Meier
parent 0fa03e65ab
commit a06b3e50ab
1 changed files with 1 additions and 1 deletions

View File

@ -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);