mirror of https://github.com/ArduPilot/ardupilot
ArduPlane: use hal's vsnprintf
This commit is contained in:
parent
a1187519a8
commit
54b98c0a7c
|
@ -2127,7 +2127,8 @@ static void gcs_send_text_fmt(const prog_char_t *fmt, ...)
|
||||||
fmtstr[i] = 0;
|
fmtstr[i] = 0;
|
||||||
pending_status.severity = (uint8_t)SEVERITY_LOW;
|
pending_status.severity = (uint8_t)SEVERITY_LOW;
|
||||||
va_start(arg_list, fmt);
|
va_start(arg_list, fmt);
|
||||||
vsnprintf((char *)pending_status.text, sizeof(pending_status.text), fmtstr, arg_list);
|
hal.util->vsnprintf((char *)pending_status.text,
|
||||||
|
sizeof(pending_status.text), fmtstr, arg_list);
|
||||||
va_end(arg_list);
|
va_end(arg_list);
|
||||||
mavlink_send_message(MAVLINK_COMM_0, MSG_STATUSTEXT, 0);
|
mavlink_send_message(MAVLINK_COMM_0, MSG_STATUSTEXT, 0);
|
||||||
if (gcs3.initialised) {
|
if (gcs3.initialised) {
|
||||||
|
|
Loading…
Reference in New Issue