mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 06:30:35 +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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user