ArduPlane: use hal's vsnprintf

This commit is contained in:
Pat Hickey 2012-12-18 17:31:56 -08:00 committed by Andrew Tridgell
parent 2f1846165b
commit edb076a6c5
1 changed files with 2 additions and 1 deletions

View File

@ -2081,7 +2081,8 @@ void gcs_send_text_fmt(const prog_char_t *fmt, ...)
fmtstr[i] = 0;
gcs0.pending_status.severity = (uint8_t)SEVERITY_LOW;
va_start(arg_list, fmt);
vsnprintf((char *)gcs0.pending_status.text, sizeof(gcs0.pending_status.text), fmtstr, arg_list);
hal.util->vsnprintf((char *)gcs0.pending_status.text,
sizeof(gcs0.pending_status.text), fmtstr, arg_list);
va_end(arg_list);
gcs3.pending_status = gcs0.pending_status;
mavlink_send_message(MAVLINK_COMM_0, MSG_STATUSTEXT, 0);