Initialise some extra fields, don't try closing an ORB advertisement.

This commit is contained in:
px4dev 2012-09-03 23:21:17 -07:00
parent 86a29f7064
commit 5c692e2971
1 changed files with 2 additions and 1 deletions

View File

@ -121,6 +121,8 @@ FMUServo::FMUServo(Mode mode) :
_task(-1), _task(-1),
_t_actuators(-1), _t_actuators(-1),
_t_armed(-1), _t_armed(-1),
_t_outputs(0),
_num_outputs(0),
_task_should_exit(false), _task_should_exit(false),
_armed(false), _armed(false),
_mixers(nullptr) _mixers(nullptr)
@ -280,7 +282,6 @@ FMUServo::task_main()
::close(_t_actuators); ::close(_t_actuators);
::close(_t_armed); ::close(_t_armed);
::close(_t_outputs);
/* make sure servos are off */ /* make sure servos are off */
up_pwm_servo_deinit(); up_pwm_servo_deinit();