mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-16 04:53:35 +08:00
Closing all opened file descriptors, fixed param save issue, tests clean
This commit is contained in:
@@ -142,6 +142,10 @@ int preflight_check_main(int argc, char *argv[])
|
||||
|
||||
bool rc_ok = (OK == rc_calibration_check());
|
||||
|
||||
/* warn */
|
||||
if (!rc_ok)
|
||||
warnx("rc calibration test failed");
|
||||
|
||||
/* require RC ok to keep system_ok */
|
||||
system_ok &= rc_ok;
|
||||
|
||||
@@ -156,6 +160,9 @@ system_eval:
|
||||
} else {
|
||||
fflush(stdout);
|
||||
|
||||
warnx("PREFLIGHT CHECK ERROR! TRIGGERING ALARM");
|
||||
fflush(stderr);
|
||||
|
||||
int buzzer = open("/dev/tone_alarm", O_WRONLY);
|
||||
int leds = open(LED_DEVICE_PATH, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user