mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-28 18:24:08 +08:00
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:
parent
1130bc129c
commit
e6adfa6b6b
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user