diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-08 14:24:10 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2014-05-08 14:24:10 +0200 |
commit | 45be38c33363921b00ff764da7f87aaf8ec591c5 (patch) | |
tree | d31295669ee6e4bee6d89ecd87fb268f75df197a /src | |
parent | 9f2d65eff53e88f1c0674766f2f9ef6be04875c0 (diff) | |
download | px4-firmware-45be38c33363921b00ff764da7f87aaf8ec591c5.tar.gz px4-firmware-45be38c33363921b00ff764da7f87aaf8ec591c5.tar.bz2 px4-firmware-45be38c33363921b00ff764da7f87aaf8ec591c5.zip |
Removing an unwanted usleep on poll errors
Diffstat (limited to 'src')
-rw-r--r-- | src/drivers/px4fmu/fmu.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index e81902494..ddb16401b 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -559,13 +559,12 @@ PX4FMU::task_main() } /* sleep waiting for data, stopping to check for PPM - * input at 100Hz */ + * input at 50Hz */ int ret = ::poll(_poll_fds, _poll_fds_num, CONTROL_INPUT_DROP_LIMIT_MS); /* this would be bad... */ if (ret < 0) { log("poll error %d", errno); - usleep(1000000); continue; } else if (ret == 0) { |