diff options
author | px4dev <px4@purgatory.org> | 2012-09-03 23:21:17 -0700 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2012-09-03 23:21:17 -0700 |
commit | 5c692e29710666bb85efa8ac397526fed72edaee (patch) | |
tree | e1cf890aa0fb6a62de96b72fc7de901f7cf4ebcf /apps | |
parent | 86a29f7064b52d9f8283338dd71248dc5dffe0e6 (diff) | |
download | px4-firmware-5c692e29710666bb85efa8ac397526fed72edaee.tar.gz px4-firmware-5c692e29710666bb85efa8ac397526fed72edaee.tar.bz2 px4-firmware-5c692e29710666bb85efa8ac397526fed72edaee.zip |
Initialise some extra fields, don't try closing an ORB advertisement.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/px4/fmu/fmu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/px4/fmu/fmu.cpp b/apps/px4/fmu/fmu.cpp index dc4a0e8fb..a9aab0432 100644 --- a/apps/px4/fmu/fmu.cpp +++ b/apps/px4/fmu/fmu.cpp @@ -121,6 +121,8 @@ FMUServo::FMUServo(Mode mode) : _task(-1), _t_actuators(-1), _t_armed(-1), + _t_outputs(0), + _num_outputs(0), _task_should_exit(false), _armed(false), _mixers(nullptr) @@ -280,7 +282,6 @@ FMUServo::task_main() ::close(_t_actuators); ::close(_t_armed); - ::close(_t_outputs); /* make sure servos are off */ up_pwm_servo_deinit(); |