fix fmu: call dsm_deinit() in destructor

This closes the fd and cleans up a static variable used in the dsm parser.
This commit is contained in:
Beat Küng 2017-07-18 15:29:58 +02:00 committed by Lorenz Meier
parent 1130bc129c
commit e6adfa6b6b

View File

@ -470,6 +470,8 @@ PX4FMU::~PX4FMU()
/* make sure servos are off */
up_pwm_servo_deinit();
dsm_deinit();
/* note - someone else is responsible for restoring the GPIO config */
/* clean up the alternate device node */