fmu: add ifdef for dsm_deinit()

This commit is contained in:
Beat Küng
2017-07-18 16:26:30 +02:00
committed by Lorenz Meier
parent 2193afd0a0
commit 07b7a153f3
+2
View File
@@ -470,7 +470,9 @@ PX4FMU::~PX4FMU()
/* make sure servos are off */
up_pwm_servo_deinit();
#ifdef RC_SERIAL_PORT
dsm_deinit();
#endif
/* note - someone else is responsible for restoring the GPIO config */