mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
fmu: add ifdef for dsm_deinit()
This commit is contained in:
@@ -470,7 +470,9 @@ PX4FMU::~PX4FMU()
|
|||||||
/* make sure servos are off */
|
/* make sure servos are off */
|
||||||
up_pwm_servo_deinit();
|
up_pwm_servo_deinit();
|
||||||
|
|
||||||
|
#ifdef RC_SERIAL_PORT
|
||||||
dsm_deinit();
|
dsm_deinit();
|
||||||
|
#endif
|
||||||
|
|
||||||
/* note - someone else is responsible for restoring the GPIO config */
|
/* note - someone else is responsible for restoring the GPIO config */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user