diff options
Diffstat (limited to 'apps/px4')
-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(); |