From edb076a6c514069da9d2d7a0202e1b24fe29a6a4 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 18 Dec 2012 17:31:56 -0800 Subject: [PATCH] ArduPlane: use hal's vsnprintf --- ArduPlane/GCS_Mavlink.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduPlane/GCS_Mavlink.pde b/ArduPlane/GCS_Mavlink.pde index deeeb97e8f..8b9d559282 100644 --- a/ArduPlane/GCS_Mavlink.pde +++ b/ArduPlane/GCS_Mavlink.pde @@ -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);