Commander: Fix reporting in presence of no telemetry link

This commit is contained in:
Lorenz Meier
2015-11-19 16:33:56 +01:00
parent ca125bccbd
commit 173edcef63
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -382,9 +382,9 @@ int commander_main(int argc, char *argv[])
if (!strcmp(argv[1], "check")) {
int mavlink_fd_local = px4_open(MAVLINK_LOG_DEVICE, 0);
int checkres = 0;
checkres = preflight_check(&status, mavlink_fd_local, false);
checkres = preflight_check(&status, mavlink_fd_local, false, true);
warnx("Preflight check: %s", (checkres == 0) ? "OK" : "FAILED");
checkres = preflight_check(&status, mavlink_fd_local, true);
checkres = preflight_check(&status, mavlink_fd_local, true, true);
warnx("Prearm check: %s", (checkres == 0) ? "OK" : "FAILED");
px4_close(mavlink_fd_local);
return 0;