From 54b98c0a7cebb212e2efbe84b96ce216c500fdbc Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Tue, 18 Dec 2012 17:31:39 -0800 Subject: [PATCH] ArduPlane: use hal's vsnprintf --- ArduCopter/GCS_Mavlink.pde | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ArduCopter/GCS_Mavlink.pde b/ArduCopter/GCS_Mavlink.pde index 83c67d999a..0841fcdf11 100644 --- a/ArduCopter/GCS_Mavlink.pde +++ b/ArduCopter/GCS_Mavlink.pde @@ -2127,7 +2127,8 @@ static void gcs_send_text_fmt(const prog_char_t *fmt, ...) fmtstr[i] = 0; pending_status.severity = (uint8_t)SEVERITY_LOW; 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); mavlink_send_message(MAVLINK_COMM_0, MSG_STATUSTEXT, 0); if (gcs3.initialised) {