Output a debug string is Invalid @ parameter #1

line 143 may be crash or buffer overflow. because the argument must is a pointer as char type  that and have a valid buffer
This commit is contained in:
ultrasystem 2014-05-12 21:17:19 +08:00
parent 47d21f0c57
commit db2b85cbd4

View File

@ -140,7 +140,7 @@ int rc_calibration_check(int mavlink_fd) {
/* sanity checks pass, enable channel */
if (count) {
mavlink_log_critical(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1));
warnx(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1));
warnc(mavlink_fd, "ERROR: %d config error(s) for RC channel %d.", count, (i + 1));
usleep(100000);
}