diff options
author | Anton Babushkin <anton.babushkin@me.com> | 2013-10-22 21:01:30 +0200 |
---|---|---|
committer | Anton Babushkin <anton.babushkin@me.com> | 2013-10-22 21:01:30 +0200 |
commit | 28b4e978534e164d08125a9b0cf1fe428d9ad122 (patch) | |
tree | 71f6725287a78cb004f11fc38027db7c535af141 /src/systemcmds/preflight_check | |
parent | fa43eee47e07aee3517dae31b45ed3b05678ff94 (diff) | |
download | px4-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/systemcmds/preflight_check')
-rw-r--r-- | src/systemcmds/preflight_check/preflight_check.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/systemcmds/preflight_check/preflight_check.c b/src/systemcmds/preflight_check/preflight_check.c index e9c5f1a2c..1c58a2db6 100644 --- a/src/systemcmds/preflight_check/preflight_check.c +++ b/src/systemcmds/preflight_check/preflight_check.c @@ -140,7 +140,7 @@ int preflight_check_main(int argc, char *argv[]) /* ---- RC CALIBRATION ---- */ - bool rc_ok = (OK == rc_calibration_check()); + bool rc_ok = (OK == rc_calibration_check(mavlink_fd)); /* warn */ if (!rc_ok) @@ -227,4 +227,4 @@ static int led_off(int leds, int led) static int led_on(int leds, int led) { return ioctl(leds, LED_ON, led); -}
\ No newline at end of file +} |