Fixed bug with fd leak in rc_calibration_check

This commit is contained in:
Anton Babushkin
2013-10-22 21:01:30 +02:00
parent fa43eee47e
commit 28b4e97853
4 changed files with 6 additions and 8 deletions
@@ -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);
}
}