diff options
author | Julian Oes <julian@oes.ch> | 2013-10-29 13:38:44 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-10-29 15:57:09 +0100 |
commit | a06b3e50ab4d4c73fd400ec2891b1ab7a9eb8451 (patch) | |
tree | 79a7d29abce841f06937b715dcde4c51a63ea795 | |
parent | 0fa03e65ab3ab0e173e487b3e5f5321780f3afff (diff) | |
download | px4-firmware-a06b3e50ab4d4c73fd400ec2891b1ab7a9eb8451.tar.gz px4-firmware-a06b3e50ab4d4c73fd400ec2891b1ab7a9eb8451.tar.bz2 px4-firmware-a06b3e50ab4d4c73fd400ec2891b1ab7a9eb8451.zip |
Only read 5 values, then return
-rw-r--r-- | src/examples/px4_simple_app/px4_simple_app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/examples/px4_simple_app/px4_simple_app.c b/src/examples/px4_simple_app/px4_simple_app.c index 7f655964d..44e6dc7f3 100644 --- a/src/examples/px4_simple_app/px4_simple_app.c +++ b/src/examples/px4_simple_app/px4_simple_app.c @@ -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); |