aboutsummaryrefslogtreecommitdiff
path: root/src/modules/systemlib/rc_check.c
diff options
context:
space:
mode:
authorAnton Babushkin <anton.babushkin@me.com>2013-10-22 21:01:30 +0200
committerAnton Babushkin <anton.babushkin@me.com>2013-10-22 21:01:30 +0200
commit28b4e978534e164d08125a9b0cf1fe428d9ad122 (patch)
tree71f6725287a78cb004f11fc38027db7c535af141 /src/modules/systemlib/rc_check.c
parentfa43eee47e07aee3517dae31b45ed3b05678ff94 (diff)
downloadpx4-firmware-28b4e978534e164d08125a9b0cf1fe428d9ad122.tar.gz
px4-firmware-28b4e978534e164d08125a9b0cf1fe428d9ad122.tar.bz2
px4-firmware-28b4e978534e164d08125a9b0cf1fe428d9ad122.zip
Fixed bug with fd leak in rc_calibration_check
Diffstat (limited to 'src/modules/systemlib/rc_check.c')
-rw-r--r--src/modules/systemlib/rc_check.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/systemlib/rc_check.c b/src/modules/systemlib/rc_check.c
index 60d6473b8..b4350cc24 100644
--- a/src/modules/systemlib/rc_check.c
+++ b/src/modules/systemlib/rc_check.c
@@ -47,14 +47,12 @@
#include <mavlink/mavlink_log.h>
#include <uORB/topics/rc_channels.h>
-int rc_calibration_check(void) {
+int rc_calibration_check(int mavlink_fd) {
char nbuf[20];
param_t _parameter_handles_min, _parameter_handles_trim, _parameter_handles_max,
_parameter_handles_rev, _parameter_handles_dz;
- int mavlink_fd = open(MAVLINK_LOG_DEVICE, 0);
-
float param_min, param_max, param_trim, param_rev, param_dz;
/* first check channel mappings */