diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-20 14:55:48 +0200 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2013-05-21 09:14:22 +0200 |
commit | d720944efed1c5cde2b6feed170ade7b2bc9ada3 (patch) | |
tree | 749bf11960ea7f790393c0cdb907a7554b9003d3 /src/systemcmds | |
parent | 88ba97816ddffdfeae6f8d29e984759136eef9b3 (diff) | |
download | px4-firmware-d720944efed1c5cde2b6feed170ade7b2bc9ada3.tar.gz px4-firmware-d720944efed1c5cde2b6feed170ade7b2bc9ada3.tar.bz2 px4-firmware-d720944efed1c5cde2b6feed170ade7b2bc9ada3.zip |
VA args now supported by MAVLink text messages
Diffstat (limited to 'src/systemcmds')
-rw-r--r-- | src/systemcmds/preflight_check/preflight_check.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/systemcmds/preflight_check/preflight_check.c b/src/systemcmds/preflight_check/preflight_check.c index 7b1c9679e..4bcce18fb 100644 --- a/src/systemcmds/preflight_check/preflight_check.c +++ b/src/systemcmds/preflight_check/preflight_check.c @@ -41,6 +41,7 @@ #include <unistd.h> #include <stdlib.h> #include <stdio.h> +#include <string.h> #include <fcntl.h> #include <errno.h> @@ -143,6 +144,7 @@ int preflight_check_main(int argc, char *argv[]) float param_min, param_max, param_trim, param_rev, param_dz; bool rc_ok = true; + char nbuf[20]; for (int i = 0; i < 12; i++) { /* should the channel be enabled? */ @@ -217,7 +219,7 @@ int preflight_check_main(int argc, char *argv[]) /* sanity checks pass, enable channel */ if (count) { - mavlink_log_critical("ERROR: %d config error(s) for RC channel %d.", count, (channel + 1)); + mavlink_log_critical(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1)); usleep(100000); rc_ok = false; } |