mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-26 17:20:34 +08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user