From e6adfa6b6b9264596febcfc7cd9af415e48290c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Tue, 18 Jul 2017 15:29:58 +0200 Subject: [PATCH] fix fmu: call dsm_deinit() in destructor This closes the fd and cleans up a static variable used in the dsm parser. --- src/drivers/px4fmu/fmu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/px4fmu/fmu.cpp b/src/drivers/px4fmu/fmu.cpp index 7c6ba3a829..739f7b1b4a 100644 --- a/src/drivers/px4fmu/fmu.cpp +++ b/src/drivers/px4fmu/fmu.cpp @@ -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 */