mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 16:53:34 +08:00
Fixed bug with fd leak in rc_calibration_check
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user